3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*E_ERROR */ function exception_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); function shutDownFunction() { echo 'as'; $error = error_get_last(); if ($error['type'] == 1) { //do your stuff } } register_shutdown_function('shutdownFunction'); require __DIR__ . '/../src/E2EX/Converter.php';
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
string(133) "require(): open_basedir restriction in effect. File(/in/../src/E2EX/Converter.php) is not within the allowed path(s): (/tmp:/in:/etc)" string(86) "require(/in/../src/E2EX/Converter.php): Failed to open stream: Operation not permitted" Fatal error: Uncaught Error: Failed opening required '/in/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj:28 Stack trace: #0 {main} thrown in /in/5RjYj on line 28 as
Process exited with code 255.
Output for 8.0.13
string(88) "require(/in/../src/E2EX/Converter.php): Failed to open stream: No such file or directory" Fatal error: Uncaught Error: Failed opening required '/in/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj:28 Stack trace: #0 {main} thrown in /in/5RjYj on line 28 as
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.3.32 - 7.3.33, 7.4.26, 7.4.33
string(88) "require(/in/../src/E2EX/Converter.php): failed to open stream: No such file or directory" Fatal error: require(): Failed opening required '/in/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as
Process exited with code 255.
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32
string(133) "require(): open_basedir restriction in effect. File(/in/../src/E2EX/Converter.php) is not within the allowed path(s): (/tmp:/in:/etc)" string(86) "require(/in/../src/E2EX/Converter.php): failed to open stream: Operation not permitted" Fatal error: require(): Failed opening required '/in/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as
Process exited with code 255.
Output for 5.2.0 - 5.2.17
string(53) "Use of undefined constant __DIR__ - assumed '__DIR__'" string(92) "require(__DIR__/../src/E2EX/Converter.php): failed to open stream: No such file or directory" Fatal error: require(): Failed opening required '__DIR__/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as
Process exited with code 255.
Output for 5.1.0 - 5.1.6
string(53) "Use of undefined constant __DIR__ - assumed '__DIR__'" string(92) "require(__DIR__/../src/E2EX/Converter.php): failed to open stream: No such file or directory" Fatal error: require(): Failed opening required '__DIR__/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as Fatal error: Call to undefined function error_get_last() in /in/5RjYj on line 16
Process exited with code 255.
Output for 5.0.0 - 5.0.5
string(53) "Use of undefined constant __DIR__ - assumed '__DIR__'" string(89) "main(__DIR__/../src/E2EX/Converter.php): failed to open stream: No such file or directory" Fatal error: main(): Failed opening required '__DIR__/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as Fatal error: Call to undefined function error_get_last() in /in/5RjYj on line 16
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: Wrong parameter count for set_error_handler() in /in/5RjYj on line 11 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/5RjYj on line 28 Warning: main(__DIR__/../src/E2EX/Converter.php): failed to open stream: No such file or directory in /in/5RjYj on line 28 Fatal error: main(): Failed opening required '__DIR__/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as Fatal error: Call to undefined function: error_get_last() in /in/5RjYj on line 16
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Warning: Wrong parameter count for set_error_handler() in /in/5RjYj on line 11 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/5RjYj on line 28 Warning: main(__DIR__/../src/E2EX/Converter.php): failed to open stream: No such file or directory in /in/5RjYj on line 28 Fatal error: main(): Failed opening required '__DIR__/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as Fatal error: Call to undefined function: error_get_last() in /in/5RjYj on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Wrong parameter count for set_error_handler() in /in/5RjYj on line 11 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/5RjYj on line 28 Warning: main(__DIR__/../src/E2EX/Converter.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/5RjYj on line 28 Fatal error: main() [http://www.php.net/function.main]: Failed opening required '__DIR__/../src/E2EX/Converter.php' (include_path='.:') in /in/5RjYj on line 28 as Fatal error: Call to undefined function: error_get_last() in /in/5RjYj on line 16

preferences:
309.15 ms | 402 KiB | 393 Q