3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stack = array( 'global' => array( 'areas' => array('a' => 'b'), 'crypt' => array('a' => 'b'), 'install' => array('a' => 'b'), ) ); while ($stack) { list($key, $value) = each($stack); unset($stack[$key]); if (is_array($value)) { if (count($value)) { foreach ($value as $subKey => $node) { $build[$key . $separator . $subKey] = $node; } } else { $build[$key] = null; } $stack = $build + $stack; continue; } $parameters[$key] = $value; } var_dump($parameters);

preferences:
79.07 ms | 402 KiB | 5 Q