这段代码有什么问题:
<?php eval(" $start = microtime(true)*1000; echo 'hello'; $end=microtime(true)*1000; $time = $end-$start; $time = round($time,4); echo '<br />Time taken: '.$time.'ms<br />'; "); ?>
这正是一行代码(不要问为什么),但为了可读性,我重复一遍
<?php
eval(" $start = microtime(true)*1000;
echo 'hello';
$end=microtime(true)*1000;
$time = $end-$start;
$time = round($time,4);
echo '<br />Time taken: '.$time.'ms<br />';
");
?>
我收到此错误:
Parse error: syntax error, unexpected '=' in ...\test2.php(1) : eval()'d code on line 1