3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo {} $foo = new Foo; $rounds = 1000000000; $start = microtime(true); for($i=0; $i<$rounds; $i++) { get_class($foo); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { (new ReflectionClass($foo))->getName(); } echo (microtime(true) - $start);
Output for 5.4.0 - 5.4.16

Process exited with code 137.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/kKn3Z on line 19
Process exited with code 255.