3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=0; $j=500000; while($i < 60000) { $i++; $j++; $data1[] = md5($i); $data2[] = md5($j); } $key = md5(1); $time = microtime(true); echo "Starting\n"; $test = in_array($key, $data1); $time = microtime(true) - $time; echo ' took ' . number_format($time, 3) . ' seconds\n";
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected '' seconds\n";' (T_ENCAPSED_AND_WHITESPACE) in /in/0FdB4 on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/0FdB4 on line 17
Process exited with code 255.