3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function write($str) { echo $str . '<br>'; } write('*数字の配列を操作'); function i11($arr) { echo ’比較演算子1-1’, PHP_EOL; $start = microtime(true); for($i=0;$i<100000;++$i)6==$arr[$i]; $end = microtime(true); echo $end - $start, PHP_EOL; } i11($arr); function i12($arr) { echo ’比較演算子1-2’, PHP_EOL; $start = microtime(true); for($i=0;$i<100000;++$i)6===$arr[$i]; $end = microtime(true); echo $end - $start, PHP_EOL; }
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '’' (T_STRING), expecting ',' or ';' in /in/ZS7YD on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/ZS7YD on line 10
Process exited with code 255.