3v4l.org

run code in 300+ PHP versions simultaneously
<?php $map = array(array('-1'=>0, '-10'=>0, '-100'=>0), array(array('-1'=>0, '-10'=>0, '-100'=>0))); function ksort_recursive($array){ if (is_array($array)) { ksort($array); foreach ($array as $k => $v) { $array[$k] = call_user_func(__FUNCTION__, $v); } } return $array; } $map = ksort_recursive($map); // ksort($map[0]); // ksort($map[0]); // ksort($map[0]); // ksort($map[1][0]); // ksort($map[1][0]); // ksort($map[1][0]); print_r($map);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [-100] => 0 [-10] => 0 [-1] => 0 ) [1] => Array ( [0] => Array ( [-100] => 0 [-10] => 0 [-1] => 0 ) ) )

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:
57.3 ms | 402 KiB | 8 Q