3v4l.org

run code in 300+ PHP versions simultaneously
<?php function logger() {} function myErrorHandler($errno, $errstr, $errfile, $errline) { switch ($errno) { case E_USER_ERROR: logger(); //exit; } } set_error_handler("myErrorHandler"); function makeMeRich(): never { trigger_error("Error", E_USER_ERROR); } makeMeRich();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: makeMeRich(): never-returning function must not implicitly return in /in/VOoa3:17 Stack trace: #0 /in/VOoa3(19): makeMeRich() #1 {main} thrown in /in/VOoa3 on line 17
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:
69.45 ms | 401 KiB | 8 Q