3v4l.org

run code in 300+ PHP versions simultaneously
<?php function user_exception_handler_02(Throwable $ex) { restore_exception_handler(); throw new RuntimeException("Not able to handle, throwing another exception from handler"); echo "Should never see this"; } function throw_it() { throw new RuntimeException('Expected unexpected happened'); } function call_throw_it() { throw_it(); } set_exception_handler('user_exception_handler_02'); call_throw_it();
Output for git.master_jit, git.master
Fatal error: Uncaught Error: Maximum call stack size of 8306688 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion? in /in/Hct7c:3 Stack trace: #0 [internal function]: user_exception_handler_02(Object(RuntimeException)) #1 {main} thrown in /in/Hct7c on line 3
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught RuntimeException: Not able to handle, throwing another exception from handler in /in/Hct7c:5 Stack trace: #0 [internal function]: user_exception_handler_02(Object(RuntimeException)) #1 {main} thrown in /in/Hct7c on line 5
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:
48.45 ms | 407 KiB | 5 Q