3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $allIcons = []; foreach ($iconSet as $doc => $icons) { foreach($icons as $icon) { $allIcons[$doc][] = $icon; } }
based on En28D
Output for 5.4.2 - 7.2.0
Notice: Undefined variable: iconSet in /in/fFO9r on line 3 Warning: Invalid argument supplied for foreach() in /in/fFO9r on line 3
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/fFO9r on line 2
Process exited with code 255.