3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $null = null; $arr = array(); $str = 'string'; $num = 7; $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 $num['nope']; echo $num['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/GpXc9 on line 12 Warning: Trying to access array offset on value of type null in /in/GpXc9 on line 13 Warning: Trying to access array offset on value of type null in /in/GpXc9 on line 13 Warning: Undefined array key "nope" in /in/GpXc9 on line 15 Warning: Undefined array key "nope" in /in/GpXc9 on line 16 Warning: Trying to access array offset on value of type null in /in/GpXc9 on line 16 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/GpXc9:18 Stack trace: #0 {main} thrown in /in/GpXc9 on line 18
Process exited with code 255.
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/GpXc9 on line 12 Warning: Trying to access array offset on null in /in/GpXc9 on line 13 Warning: Trying to access array offset on null in /in/GpXc9 on line 13 Warning: Undefined array key "nope" in /in/GpXc9 on line 15 Warning: Undefined array key "nope" in /in/GpXc9 on line 16 Warning: Trying to access array offset on null in /in/GpXc9 on line 16 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/GpXc9:18 Stack trace: #0 {main} thrown in /in/GpXc9 on line 18
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:
46.09 ms | 401 KiB | 8 Q