3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = [9,7,5,3,0]; $count = count($x) - 1; for ($pass = 0; $pass < $count; ++$pass) { for ($i = 0; $i < $count; ++$i) { if ($x[$i] > $x[$i + 1]) { [$x[$i + 1], $x[$i]] = [$x[$i], $x[$i + 1]]; } $results[] = implode($x); } $results[] = "\n"; } echo implode("\n", $results);
Output for git.master, git.master_jit, rfc.property-hooks
79530 75930 75390 75309 57309 53709 53079 53079 35079 30579 30579 30579 03579 03579 03579 03579

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:
28.53 ms | 405 KiB | 5 Q