3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _do_something(){return FALSE;} set_error_handler('_do_something'); $a["x"];//should trigger notice var_dump(error_get_last());//return null
Output for git.master, git.master_jit
Warning: Undefined variable $a in /in/87ovU on line 6 Warning: Trying to access array offset on value of type null in /in/87ovU on line 6 array(4) { ["type"]=> int(2) ["message"]=> string(51) "Trying to access array offset on value of type null" ["file"]=> string(9) "/in/87ovU" ["line"]=> int(6) }
Output for rfc.property-hooks
Warning: Undefined variable $a in /in/87ovU on line 6 Warning: Trying to access array offset on null in /in/87ovU on line 6 array(4) { ["type"]=> int(2) ["message"]=> string(37) "Trying to access array offset on null" ["file"]=> string(9) "/in/87ovU" ["line"]=> int(6) }

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