3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counts = [ 'group1' => [ '123' => 'foo', '25'=> 'bar', '3' => 'fizz' ], 'group2' => [ '23000' => 'one', '888'=> 'two', ], 'group3' => [ '76' => 'a', '555'=> 'b', '3333' => 'c', '22' => 'd', ], ]; array_walk($counts, fn(&$row) => ksort($row)); var_export($counts);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'group1' => array ( 3 => 'fizz', 25 => 'bar', 123 => 'foo', ), 'group2' => array ( 888 => 'two', 23000 => 'one', ), 'group3' => array ( 22 => 'd', 76 => 'a', 555 => 'b', 3333 => '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:
63.97 ms | 406 KiB | 5 Q