3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.20, 7.1.0 - 7.1.7, 7.2.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 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
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.3.11, 4.4.0 - 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

preferences:
137.51 ms | 401 KiB | 175 Q