3v4l.org

run code in 300+ PHP versions simultaneously
<?php $milliseconds = round(microtime(true) * 1000); $l=3000000; for ($index = 0; $index < $l; $index++) { // include __DIR__DIRECTORY_SEPARATOR'aphp'; // php7(opcache) faster x86 require_once __DIR__ . DIRECTORY_SEPARATOR . 'aphp'; // php7(opcache) faster x22 } $total = round(microtime(true) * 1000) - $milliseconds; $milliseconds = round(microtime(true) * 1000); for ($index = 0; $index < $l; $index++) { } $total = $total - (round(microtime(true) * 1000) - $milliseconds); print_r($total "\n\n");
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '"\n\n"' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in /in/H3U0F on line 15
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected '"\n\n"' (T_CONSTANT_ENCAPSED_STRING) in /in/H3U0F on line 15
Process exited with code 255.

preferences:
170.06 ms | 1395 KiB | 25 Q