3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $config = ['view'=>'123/123']; $admin = [ 'admin'=> 'admin', 'view'=>'test', ]; $admin += $config; var_dump($admin);
Output for 5.4.10 - 7.3.0rc4
array(2) { ["admin"]=> string(5) "admin" ["view"]=> string(4) "test" }
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/9oiXR on line 3
Process exited with code 255.