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 " . $andra[$i] . "\n"; echo " {$andra[$i]}\n"; var_dump($array); ?>
Output for git.master, git.master_jit, rfc.property-hooks
mama Warning: Undefined array key 0 in /in/HALRC on line 17 bad bad 12 Warning: Undefined array key 2 in /in/HALRC on line 17 bad 14 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.68 ms | 401 KiB | 8 Q