3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL+E_STRICT); $arry = array(1=>1); $notarry = NULL; $intvar = 123; echo "1. arry[1] = " . $arry[1] . "\n"; echo "2. arry[2] = " . $arry[2] . "\n"; echo "3. intvar[0] = " . $intvar[0] . "\n"; echo "4. intvar[1] = " . $intvar[1] . "\n"; echo "5. notarry[1] = " . $notarry[1] . "\n";
Output for git.master, git.master_jit
1. arry[1] = 1 Warning: Undefined array key 2 in /in/Gbrl8 on line 7 2. arry[2] = Warning: Trying to access array offset on value of type int in /in/Gbrl8 on line 8 3. intvar[0] = Warning: Trying to access array offset on value of type int in /in/Gbrl8 on line 9 4. intvar[1] = Warning: Trying to access array offset on value of type null in /in/Gbrl8 on line 10 5. notarry[1] =
Output for rfc.property-hooks
1. arry[1] = 1 Warning: Undefined array key 2 in /in/Gbrl8 on line 7 2. arry[2] = Warning: Trying to access array offset on int in /in/Gbrl8 on line 8 3. intvar[0] = Warning: Trying to access array offset on int in /in/Gbrl8 on line 9 4. intvar[1] = Warning: Trying to access array offset on null in /in/Gbrl8 on line 10 5. notarry[1] =

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