3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["1" => "a", "2" => "b", "3" => [10 => "apple",11 => "cat", 12 => ["key" => "image" ]]]; if ( array_walk_recursive($arr, function($item,$key) { if ($key == "key") { echo "\nKey is $key and item is $item"; } })) { echo "\narray_walk_recursive rocks :)"; }
Output for git.master, git.master_jit, rfc.property-hooks
Key is key and item is image array_walk_recursive rocks :)

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:
34.24 ms | 405 KiB | 5 Q