3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($severity, $message, $file, $line) { if (!(error_reporting() & $severity)) { // This error code is not included in error_reporting return; } throw new ErrorException($message, 0, $severity, $file, $line); } set_error_handler("exception_error_handler"); try { require_once 'nxx.php'; } Catch (ErrorException $e) { var_dump($e); }
Output for git.master, git.master_jit, rfc.property-hooks
object(ErrorException)#1 (8) { ["message":protected]=> string(116) "require_once(): open_basedir restriction in effect. File(nxx.php) is not within the allowed path(s): (/tmp:/in:/etc)" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/W1SVn" ["line":protected]=> int(12) ["trace":"Exception":private]=> array(2) { [0]=> array(4) { ["file"]=> string(9) "/in/W1SVn" ["line"]=> int(12) ["function"]=> string(23) "exception_error_handler" ["args"]=> array(4) { [0]=> int(2) [1]=> string(116) "require_once(): open_basedir restriction in effect. File(nxx.php) is not within the allowed path(s): (/tmp:/in:/etc)" [2]=> string(9) "/in/W1SVn" [3]=> int(12) } } [1]=> array(3) { ["file"]=> string(9) "/in/W1SVn" ["line"]=> int(12) ["function"]=> string(12) "require_once" } } ["previous":"Exception":private]=> NULL ["severity":protected]=> int(2) }

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:
46.08 ms | 403 KiB | 8 Q