3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = null; $ret = 0; switch ("foo") { case $null['abc']: $ret = 1; break; case $null['def']: $ret = 2; break; case $null['ghi']: $ret = 3; break; } var_dump($null, $ret, $null['abc'], $null['def'], $null['ghi']);
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/C8mMJ on line 7 Warning: Trying to access array offset on value of type null in /in/C8mMJ on line 11 Warning: Trying to access array offset on value of type null in /in/C8mMJ on line 15 Warning: Trying to access array offset on value of type null in /in/C8mMJ on line 20 Warning: Trying to access array offset on value of type null in /in/C8mMJ on line 20 Warning: Trying to access array offset on value of type null in /in/C8mMJ on line 20 NULL int(0) NULL NULL NULL
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/C8mMJ on line 7 Warning: Trying to access array offset on null in /in/C8mMJ on line 11 Warning: Trying to access array offset on null in /in/C8mMJ on line 15 Warning: Trying to access array offset on null in /in/C8mMJ on line 20 Warning: Trying to access array offset on null in /in/C8mMJ on line 20 Warning: Trying to access array offset on null in /in/C8mMJ on line 20 NULL int(0) NULL NULL NULL

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:
58.87 ms | 402 KiB | 8 Q