3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_scores = [ 82 => ['score' => 1, 'time' => 6.442], 34 => ['score' => 1, 'time' => 5.646], 66 => ['score' => 3, 'time' => 1.554], 7 => ['score' => 2, 'time' => 4.442], 99 => ['score' => 4, 'time' => 3.646], 55 => ['score' => 1, 'time' => 2.554] ]; uasort($user_scores, function($a, $b) { return [$b['score'], $a['time']] <=> [$a['score'], $b['time']]; }); var_export($user_scores);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 99 => array ( 'score' => 4, 'time' => 3.646, ), 66 => array ( 'score' => 3, 'time' => 1.554, ), 7 => array ( 'score' => 2, 'time' => 4.442, ), 55 => array ( 'score' => 1, 'time' => 2.554, ), 34 => array ( 'score' => 1, 'time' => 5.646, ), 82 => array ( 'score' => 1, 'time' => 6.442, ), )

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