3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'URL' => 'http://www.transsunline.ru/', 'WORLD' => [ '200кг' => '200кг', 'ТрансСанЛайн' => 'Транс Онлайн' ], 'ERROR' => 2 ], [ 'URL' => 'http://www.transsunline.ru/vopros-otvet', 'WORLD' => [ 'mdash' => 'dash', 'ТрансСанЛайн' => 'Транс Онлайн' ], 'ERROR' => 5 ] ]; foreach ($array as $_key => $_value) { foreach (array_keys($_value['WORLD']) as $k => $v) { $res[$v][] = $_value['URL']; } } print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [200кг] => Array ( [0] => http://www.transsunline.ru/ ) [ТрансСанЛайн] => Array ( [0] => http://www.transsunline.ru/ [1] => http://www.transsunline.ru/vopros-otvet ) [mdash] => Array ( [0] => http://www.transsunline.ru/vopros-otvet ) )

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