3v4l.org

run code in 300+ PHP versions simultaneously
<?php $basket = [ 'Items' => [ [ 'd' => 'e', 'b' => 'c', 'a' => 'b' ], [ 'a' => 'b', 'd' => 'e', 'b' => 'c' ], [ 'd' => 'e', 'a' => 'b', 'b' => 'c' ] ], ]; if (isset($basket['items']) && is_array($basket['items'])) { array_walk($basket['items'], 'ksort'); } var_dump($basket);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["Items"]=> array(3) { [0]=> array(3) { ["d"]=> string(1) "e" ["b"]=> string(1) "c" ["a"]=> string(1) "b" } [1]=> array(3) { ["a"]=> string(1) "b" ["d"]=> string(1) "e" ["b"]=> string(1) "c" } [2]=> array(3) { ["d"]=> string(1) "e" ["a"]=> string(1) "b" ["b"]=> string(1) "c" } } }

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