3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cmp($a, $b) { $v = floatval($a) - floatval($b); return ($v == 0) ? 0 : (($v < 0) ? -1 : 1); } $kasa1[0]="5:franek"; $kasa1[1]="54:franek1"; $kasa1[2]="25:franek2"; $kasa1[3]="42:franek3"; $kasa1[4]="65:franek4"; uasort($kasa1, 'cmp'); $asd=count($kasa1); for ($i = 0; $i < $asd; $i++) { echo $kasa1[$i].' '; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
5:franek 54:franek1 25:franek2 42:franek3 65:franek4

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:
59.01 ms | 401 KiB | 8 Q