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']; $null['nope'][] = 'wat!?!'; echo $null['nope'][0]; echo $arr['nope']; echo $arr['nope']['sure']; $arr['nope'][] = 'wat!?!'; echo $arr['nope'][0]; echo $str['nope']; echo $str['nope']['sure']; $str['nope'][] = 'wat!?!'; echo $str['nope'][0]; echo $int['nope']; echo $int['nope']['sure']; $int['nope'][] = 'wat!?!'; echo $int['nope'][0]; echo $dbl['nope']; echo $dbl['nope']['sure']; $dbl['nope'][] = 'wat!?!'; echo $dbl['nope'][0]; echo $bool['nope']; echo $bool['nope']['sure']; $bool['nope'][] = 'wat!?!'; echo $bool['nope'][0]; echo $obj['nope']; echo $obj['nope']['sure']; $obj['nope'][] = 'wat!?!'; echo $obj['nope'][0];
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/GBEkc on line 13 Warning: Trying to access array offset on value of type null in /in/GBEkc on line 14 Warning: Trying to access array offset on value of type null in /in/GBEkc on line 14 wat!?! Warning: Undefined array key "nope" in /in/GBEkc on line 18 Warning: Undefined array key "nope" in /in/GBEkc on line 19 Warning: Trying to access array offset on value of type null in /in/GBEkc on line 19 wat!?! Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/GBEkc:23 Stack trace: #0 {main} thrown in /in/GBEkc on line 23
Process exited with code 255.
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/GBEkc on line 13 Warning: Trying to access array offset on null in /in/GBEkc on line 14 Warning: Trying to access array offset on null in /in/GBEkc on line 14 wat!?! Warning: Undefined array key "nope" in /in/GBEkc on line 18 Warning: Undefined array key "nope" in /in/GBEkc on line 19 Warning: Trying to access array offset on null in /in/GBEkc on line 19 wat!?! Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/GBEkc:23 Stack trace: #0 {main} thrown in /in/GBEkc on line 23
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:
37.88 ms | 401 KiB | 8 Q