3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contacts = []; $contacts[0] = []; $contacts[1] = []; $contacts[2] = []; $contacts[0][] = 2; $contacts[1][] = 6; $contacts[2][] = 3; $contacts[0][] = 'Bldo'; $contacts[1][] = 'Cldo'; $contacts[2][] = 'Aldo'; $keys = array_column($contacts, 1); array_multisort($keys, SORT_ASC, $contacts); print_r($contacts);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 3 [1] => Aldo ) [1] => Array ( [0] => 2 [1] => Bldo ) [2] => Array ( [0] => 6 [1] => Cldo ) )

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:
130.46 ms | 406 KiB | 5 Q