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 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'DIRECTORY_SEPARATOR' (T_STRING) in /in/hUo7N on line 6
Process exited with code 255.

preferences:
166.37 ms | 1395 KiB | 25 Q