3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function write($str) { echo $str . '<br>'; } $arr = array(); for($i=0;$i<100000;$i++)$arr[$i]=mt_rand(1, 6); // 1~6の乱数を生成 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/fWD2h on line 20
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/fWD2h on line 20
Process exited with code 255.