3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $size = 400000; for ($i = 0; $i < $size; ++$i) $a[] = rand(); $t = microtime(true); for ($i = 0; $i < count($a) * 10; ++i) ; echo (microtime(true) - $t);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected ')', expecting '[' in /in/VaXSb on line 13
Process exited with code 255.

preferences:
189.63 ms | 1395 KiB | 36 Q