3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $null = null; $arr = array(); $str = 'string'; $int = 7; $dbl = 7.3; $bool = true; $obj = new stdClass(); //echo $null['nope']; echo $null['nope']['sure']; echo $arr['nope']; echo $arr['nope']['sure']; echo $str['nope']; echo $str['nope']['sure']; echo $int['nope']; echo $int['nope']['sure']; echo $dbl['nope']; echo $dbl['nope']['sure']; echo $bool['nope']; echo $bool['nope']['sure']; echo $obj['nope']; echo $obj['nope']['sure'];
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/qIEJJ on line 14 Warning: Trying to access array offset on value of type null in /in/qIEJJ on line 14 Warning: Undefined array key "nope" in /in/qIEJJ on line 16 Warning: Undefined array key "nope" in /in/qIEJJ on line 17 Warning: Trying to access array offset on value of type null in /in/qIEJJ on line 17 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/qIEJJ:19 Stack trace: #0 {main} thrown in /in/qIEJJ on line 19
Process exited with code 255.
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/qIEJJ on line 14 Warning: Trying to access array offset on null in /in/qIEJJ on line 14 Warning: Undefined array key "nope" in /in/qIEJJ on line 16 Warning: Undefined array key "nope" in /in/qIEJJ on line 17 Warning: Trying to access array offset on null in /in/qIEJJ on line 17 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/qIEJJ:19 Stack trace: #0 {main} thrown in /in/qIEJJ on line 19
Process exited with code 255.

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