3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'es@set:col-md-8 col-lg-4 col-xl-6|info:f1|but:md fs@set:col-md-4 col-lg-8 col-xl-6|info:f4|but:md'; $arr = array(); foreach (explode("\n", $var) as $item) { list($key, $value) = explode('@', $item); foreach (explode('|', $value) as $val) { list ($k, $v) = explode(':', $val); $arr[$key][$k] = $v; }; } print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [es] => Array ( [set] => col-md-8 col-lg-4 col-xl-6 [info] => f1 [but] => md ) [fs] => Array ( [set] => col-md-4 col-lg-8 col-xl-6 [info] => f4 [but] => md ) )

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:
45.78 ms | 402 KiB | 8 Q