3v4l.org

run code in 300+ PHP versions simultaneously
<?php $unordered_array = ['11196311|3','17699636|13','11196111|0','156875|2','17699679|6','11196237|7','3464760|10']; $ids = []; $priorities = []; foreach ($unordered_array as $v) { [$ids[], $priorities[]] = explode('|', $v); } array_multisort($priorities, SORT_NUMERIC, $ids); var_export($ids);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '11196111', 1 => '156875', 2 => '11196311', 3 => '17699679', 4 => '11196237', 5 => '3464760', 6 => '17699636', )

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