3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errorLevel, $errorMessage) { echo 'in set_error_handler' . PHP_EOL; echo 'errorLevel is ' . ($errorLevel == E_RECOVERABLE_ERROR ? '': 'NOT') . 'E_RECOVERABLE_ERROR' . PHP_EOL; echo $errorMessage . PHP_EOL; }); set_exception_handler(function($exception) { echo 'in set_exception_handler' . PHP_EOL; echo 'Exception is ' . get_class($exception) . PHP_EOL; echo $exception->getMessage() . PHP_EOL; }); function a(array $a){} a(null);
Output for git.master, git.master_jit, rfc.property-hooks
in set_exception_handler Exception is TypeError a(): Argument #1 ($a) must be of type array, null given, called in /in/m4f79 on line 15

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:
56.19 ms | 401 KiB | 8 Q