3v4l.org

run code in 300+ PHP versions simultaneously
<?php function t35_handler($no, $msg){ echo __LINE__.__METHOD__."\n"; restore_error_handler(); echo __LINE__.__METHOD__."\n"; } function t35(){ 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= 4t35_handler 6t35_handler old handler=t35_handler 4t35_handler 6t35_handler

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