3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($t, $m) { echo __FUNCTION__, $m, "\n"; } function b($t, $m) { echo __FUNCTION__, $m, "\n"; } set_error_handler(function ($t, $m) { echo __FUNCTION__, $m, "\n"; }, E_USER_NOTICE); set_error_handler('b', E_USER_WARNING); trigger_error('foo'); restore_error_handler(); trigger_error('bar');
Output for git.master, git.master_jit, rfc.property-hooks
Notice: foo in /in/JdWWp on line 19 {closure}bar

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.34 ms | 401 KiB | 8 Q