在终端中执行代码时,会出现这样的错误
class checkFB {
public function curlSend ()
{
$handle = curl_init();
$url = "https://www.facebook.com/";
// Set the url
curl_setopt($handle, CURLOPT_URL, $url);
// Set the result output to be a string.
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($handle);
curl_close($handle);
echo $output;
}
public function test()
{
$this->curlSend();
}
}
$oFb = new checkFB();
$oFb -> test();
OS:19.6.0 Darwin内核版本19.6.0:Sun Jul 5 00:43:10 PDT 2020;根目录:xnu-6153.141.1〜9 / RELEASE_X86_64 x86_64
php -v
PHP 7.4.8 (cli) (built: Jul 30 2020 02:10:12) ( NTS )
php check.php
zsh: illegal hardware instruction php check.php
请帮助:(