3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["id" => 10, "hits" => 80], ["id" => 14, "hits" => 50], ["id" => 15, "hits" => 700], ["id" => 18, "hits" => 200], ]; usort( $array, fn($a, $b) => [$a['id'] !== 18, $a['hits']] <=> [$b['id'] !== 18, $b['hits']] ); var_export($array);
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => array ( 'id' => 18, 'hits' => 200, ), 1 => array ( 'id' => 14, 'hits' => 50, ), 2 => array ( 'id' => 10, 'hits' => 80, ), 3 => array ( 'id' => 15, 'hits' => 700, ), )

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