3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'name' => 'a', 'url' => 'b', ], [ 'name' => 'c', 'url' => 'd', 'children' => [ [ 'name' => 'e', 'url' => 'f' ] ] ] ]; function recurseAll($node) { echo "\n---\n"; if (is_iterable($node)) { var_export($node); foreach ($node as $childNode) { recurseAll($childNode); } } else { echo $node; } } array_walk($array, 'recurseAll');
Output for git.master, git.master_jit, rfc.property-hooks
--- array ( 'name' => 'a', 'url' => 'b', ) --- a --- b --- array ( 'name' => 'c', 'url' => 'd', 'children' => array ( 0 => array ( 'name' => 'e', 'url' => 'f', ), ), ) --- c --- d --- array ( 0 => array ( 'name' => 'e', 'url' => 'f', ), ) --- array ( 'name' => 'e', 'url' => 'f', ) --- e --- f

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