3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( "NJ", "NY", "PA" ); $length = count($array); echo "<select>"; for ($num = 0; $num <= $length; $num++) { echo "<option value='$num'> $array[$num] </option>"; } echo "</select>";
Output for git.master, git.master_jit, rfc.property-hooks
<select><option value='0'> NJ </option><option value='1'> NY </option><option value='2'> PA </option> Warning: Undefined array key 3 in /in/ni4KX on line 15 <option value='3'> </option></select>

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