3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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");
based on hUo7N
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.4.11 - 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.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/H3U0F on line 15
Process exited with code 255.