3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array ( 'bike' => array ( 'id' => 29, 'type' => 'a', 'time' => '9', ), 'car' => array ( 0 => array ( 'id' => 189, 'type' => 'b', 'time' => '18', ), 1 => array ( 'id' => 190, 'type' => 'c', 'time' => '14', ), ), 'plane' => array ( 'id' => 313, 'type' => 'd', 'time' => '20', ), ); $output = []; array_walk_recursive($input, function($value, $key) use (&$output) { if ($key == "id") { $output[] = $value; } }, $output); var_export($output);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 29, 1 => 189, 2 => 190, 3 => 313, )

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