3v4l.org

run code in 300+ PHP versions simultaneously
<?php function conf_path() { static $path; if($path != null) { return $path; } $path = '../sites/swissquote.eu.fx'; return $path; } $time = microtime(true); $i=0; while($i < 60000) { $i++; substr(conf_path(), strrpos(conf_path(), '/')+1); } $time = microtime(true) - $time; echo 'substr() took ' . number_format($time, 3) . ' seconds\n";
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '' seconds\n";' (T_ENCAPSED_AND_WHITESPACE) in /in/BgiUk on line 25
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/BgiUk on line 25
Process exited with code 255.

preferences:
202.3 ms | 1395 KiB | 60 Q