3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 7 => [49 => null, 41 => null], 8 => [70 => null, 69 => null], 105 => null, 9 => null, 10 => null ]; array_walk_recursive($array, fn(&$v, $k) => $v = $k); var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 7 => array ( 49 => 49, 41 => 41, ), 8 => array ( 70 => 70, 69 => 69, ), 105 => 105, 9 => 9, 10 => 10, )

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:
41.01 ms | 1266 KiB | 4 Q