3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sort = array( 'A' => 3, 'B' => 2, 'C' => 1, ); $menu['A'] = array( 'access' => array(1), ); $menu['B'] = array( 'access' => array((object) array('a', 'b')), ); $menu['C'] = array( 'access' => array(0), ); array_multisort($sort, SORT_NUMERIC, $menu, SORT_REGULAR); print_r($menu);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [C] => Array ( [access] => Array ( [0] => 0 ) ) [B] => Array ( [access] => Array ( [0] => stdClass Object ( [0] => a [1] => b ) ) ) [A] => Array ( [access] => Array ( [0] => 1 ) ) )

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:
120.06 ms | 407 KiB | 5 Q