3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = [ 'fronted' => [ 'index' => ['index','test], ], 'backend' => [ 'index' => ['test'] ] ]; foreach ($test as $modules => $controller) { var_dump([$modules,$comtroller]);die; $resource = $modules.$controller; foreach ($controller as $action) { $acl->addResource(new Resource($resource), $actions); } }
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'backend' (T_STRING), expecting ']' in /in/TG0Cl on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/TG0Cl on line 3
Process exited with code 255.