3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "mama"; $array = array ( 1 => "a", 2 => "b", 3=> "c", ); $andra = array( 1=>12, 3=>14); $andra[]=56; $nr=count($andra); for($i=0;$i<$nr;$i++) echo "bad" . $arrat[$i] . "\n"; echo " {$array[$i]}\n"; var_dump($array); ?>
Output for git.master, git.master_jit
mama Warning: Undefined variable $arrat in /in/BLo9G on line 17 Warning: Trying to access array offset on value of type null in /in/BLo9G on line 17 bad Warning: Undefined variable $arrat in /in/BLo9G on line 17 Warning: Trying to access array offset on value of type null in /in/BLo9G on line 17 bad Warning: Undefined variable $arrat in /in/BLo9G on line 17 Warning: Trying to access array offset on value of type null in /in/BLo9G on line 17 bad c array(3) { [1]=> string(1) "a" [2]=> string(1) "b" [3]=> string(1) "c" }
Output for rfc.property-hooks
mama Warning: Undefined variable $arrat in /in/BLo9G on line 17 Warning: Trying to access array offset on null in /in/BLo9G on line 17 bad Warning: Undefined variable $arrat in /in/BLo9G on line 17 Warning: Trying to access array offset on null in /in/BLo9G on line 17 bad Warning: Undefined variable $arrat in /in/BLo9G on line 17 Warning: Trying to access array offset on null in /in/BLo9G on line 17 bad c array(3) { [1]=> string(1) "a" [2]=> string(1) "b" [3]=> string(1) "c" }

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.05 ms | 402 KiB | 8 Q