3v4l.org

run code in 300+ PHP versions simultaneously
<?php $order_list = array ( array ("tangible", 1, 8, 1, 19000), array ("tangible", 6, 2, 10, NULL), array ("tangible", 1, 17, 1, 28000) ); usort($order_list, function ($a, $b) { if( ($c = $a[1] - $b[1]) !== 0) { return $c; } else { return $b[2] - $a[2]; } }); print_r($order_list);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => tangible [1] => 1 [2] => 17 [3] => 1 [4] => 28000 ) [1] => Array ( [0] => tangible [1] => 1 [2] => 8 [3] => 1 [4] => 19000 ) [2] => Array ( [0] => tangible [1] => 6 [2] => 2 [3] => 10 [4] => ) )

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