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'; require __DIR__ . '/../src/E2EX/FatalErrorException.php'; function exceptionHandler(E2EX\FatalErrorException $e) { echo "Exception handler got triggered with message '{$e->getMessage()}'\n"; } error_reporting(0); set_exception_handler('exceptionHandler'); E2EX\Converter::register(E_ALL); require_once __DIR__ .'/includes/e_error.inc.php';
Output for git.master, git.master_jit, rfc.property-hooks
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/bf4uZ:28 Stack trace: #0 {main} thrown in /in/bf4uZ on line 28 as
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
50.28 ms | 401 KiB | 8 Q