3v4l.org

run code in 300+ PHP versions simultaneously
<?php use strict; function error_handler ( $errno ) { $trace=debug_backtrace(); var_dump($errno); var_dump( $trace); $error = error_get_last(); $output = ""; foreach ($error as $info => $string) $output .= "{$info}: {$string}\n"; return $output; } ob_start('error_handler'); will_this_undefined_function_raise_an_error();
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: The use statement with non-compound name 'strict' has no effect in /in/9v3fh on line 2 type: 1 message: Uncaught Error: Call to undefined function will_this_undefined_function_raise_an_error() in /in/9v3fh:23 Stack trace: #0 {main} thrown file: /in/9v3fh line: 23
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Fatal error: You seem to be trying to use a different language... in /in/9v3fh on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Warning: The use statement with non-compound name 'strict' has no effect in /in/9v3fh on line 2 type: 1 message: Call to undefined function will_this_undefined_function_raise_an_error() file: /in/9v3fh line: 23
Process exited with code 255.

preferences:
161.71 ms | 402 KiB | 185 Q