3v4l.org

run code in 300+ PHP versions simultaneously
<?php function error_handler_first($no, $msg){ echo __FUNCTION__ . PHP_EOL; restore_error_handler(); } function error_handler_second($no, $msg){ echo __FUNCTION__ . PHP_EOL; restore_error_handler(); } set_error_handler(NULL); set_error_handler("error_handler_first"); set_error_handler("error_handler_second"); trigger_error("error1"); trigger_error("error2"); trigger_error("error3"); trigger_error("error4");
Output for git.master, git.master_jit, rfc.property-hooks
error_handler_second error_handler_first Notice: error3 in /in/2cRba on line 18 Notice: error4 in /in/2cRba on line 19

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