3v4l.org

run code in 300+ PHP versions simultaneously
<?php //07.arrays_menu.php $menu = [ 'shake' => [ 'vanilla ice cream', 'milk', ], 'tiramisu' => [ 'instant-espresso powder', 'sugar', '4 large egg', 'heavy cream', ], 'burger' => [ 'beef patty', 'lettuce', 'tomatoes', 'buns', ], ]; ksort($menu); print_r($menu);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [burger] => Array ( [0] => beef patty [1] => lettuce [2] => tomatoes [3] => buns ) [shake] => Array ( [0] => vanilla ice cream [1] => milk ) [tiramisu] => Array ( [0] => instant-espresso powder [1] => sugar [2] => 4 large egg [3] => heavy cream ) )

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