3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mainArr = [ [125 => 'B', 127 => 'A', 178 => 'Z', 78 => 'G'], [111 => 'X', 127 => 'K', 108 => 'J', 708 => 'P'], [125 => 'L', 127 => 'M', 178 => 'Q', 78 => 'A'], ]; array_walk($mainArr, fn(&$subarray) => asort($subarray)); var_export($mainArr);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 127 => 'A', 125 => 'B', 78 => 'G', 178 => 'Z', ), 1 => array ( 108 => 'J', 127 => 'K', 708 => 'P', 111 => 'X', ), 2 => array ( 78 => 'A', 125 => 'L', 127 => 'M', 178 => 'Q', ), )

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