3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_STRICT); define('ITERATIONS', 2000000); $start = microtime(true); for ($i=0; $i < ITERATIONS; ++$i) { foo(1); $foo = 'foo'; $foo(1); call_user_func('foo', 1); call_user_func_array('foo', array(1)); } $stop = microtime(true); echo "Test name: " . ($stop - $start) . " seconds". PHP_EOL;
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function foo() in /in/UIMZA:8 Stack trace: #0 {main} thrown in /in/UIMZA on line 8
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Call to undefined function foo() in /in/UIMZA on line -1
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0
Fatal error: Call to undefined function foo() in /in/UIMZA on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/UIMZA on line 2 Fatal error: Call to undefined function: foo() in /in/UIMZA on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/UIMZA on line 2 Fatal error: Call to undefined function: foo() in /in/UIMZA on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/UIMZA on line 2 Fatal error: Call to undefined function: foo() in /in/UIMZA on line 8