3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1,4,5,2,3,6,9]; function sortNums($array) { for ($i = 0; $i < count($array) - 1; $i++ ) { $min = $array[$i]; for ($j = $i+1; $j<count($array)-1; $j++) { $cur = $array[$j]; if ($cur > $min) { echo $cur . "<br>"; }; }; }; }; sortNums($array);
Output for git.master, git.master_jit, rfc.property-hooks
4<br>5<br>2<br>3<br>6<br>5<br>6<br>6<br>3<br>6<br>6<br>

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:
64.43 ms | 405 KiB | 9 Q