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