3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o"]; for($i = 0; $i < count($myArray); $i += 5) { array_splice($myArray, $i, 0, 1); } print_r($myArray);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 1 [1] => a [2] => b [3] => c [4] => d [5] => 1 [6] => e [7] => f [8] => g [9] => h [10] => 1 [11] => i [12] => j [13] => k [14] => l [15] => 1 [16] => m [17] => n [18] => o )

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:
109.32 ms | 406 KiB | 5 Q