3v4l.org

run code in 300+ PHP versions simultaneously
<?php function t35_handler_MOO($no, $msg){ echo __LINE__.__METHOD__."\n"; restore_error_handler(); echo __LINE__.__METHOD__."\n"; } function t35_handler($no, $msg){ echo __LINE__.__METHOD__."\n"; restore_error_handler(); echo __LINE__.__METHOD__."\n"; } function t35(){ set_error_handler("t35_handler_MOO"); echo "old handler=".set_error_handler("t35_handler")."\n"; trigger_error("error1"); //echo "old handler=".set_error_handler("t35_handler")."\n"; trigger_error("error2"); } t35(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
old handler=t35_handler_MOO 10t35_handler 12t35_handler 4t35_handler_MOO 6t35_handler_MOO

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