3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "old" => [ "uk" => "unik", "en" => "eng", "fr" => "fren" ], "new" => [ "uk" => "united kingdom", "en" => "english", "fr" => "french" ] ]; $output = []; $codes = ['uk', 'en', 'fr']; array_walk_recursive($arr, function ($value, $key) use (&$output) { $output[$key][] = $value; }); print_r($output);
Output for rfc.property-hooks, git.master, git.master_jit
Array ( [uk] => Array ( [0] => unik [1] => united kingdom ) [en] => Array ( [0] => eng [1] => english ) [fr] => Array ( [0] => fren [1] => french ) )

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.47 ms | 1532 KiB | 4 Q