3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [3,5,1,12,88,30]; for ($i=0; $i < count($array) -1; $i++){ echo $array[$i], "\n"; if ($array[$i] > $array[$i+1]){ $temp = $array[$i+1]; $array[$i+1] = $array[$i]; $array[$i] = $temp; } } print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
3 5 5 12 88 Array ( [0] => 3 [1] => 1 [2] => 5 [3] => 12 [4] => 30 [5] => 88 )

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.9 ms | 401 KiB | 8 Q