3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = ['0.3', '.5', '4', 'F', 'z', 4]; $n = count($values); for ($i = 0; $i < $n - 1; ++$i) { for ($j = $i + 1; $j < $n; ++$j) { $pair = [$values[$i], $values[$j]]; sort($pair); print var_export($pair[0], TRUE) . ' < ' . var_export($pair[1], TRUE) . "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
'0.3' < '.5' '0.3' < '4' '0.3' < 'F' '0.3' < 'z' '0.3' < 4 '.5' < '4' '.5' < 'F' '.5' < 'z' '.5' < 4 '4' < 'F' '4' < 'z' '4' < 4 'F' < 'z' 4 < 'F' 4 < 'z'

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