3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Example 1 $null = null; echo $null['undefined']; // Example 2 $reference =& $undefined; // Example 3 $cookie =& $undefined ?? 'cookie'; echo $cookie . "\n"; // Example 4 $array = ['value']; $value =& $array[0]; $anotherArray = $array; $anotherArray[0] = 'surprise!'; echo $value . "\n";
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/uZNlq on line 5 surprise!
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/uZNlq on line 5 surprise!

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