3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $initalConfig = ['test' => 'yes']; $initialConfig += ['test2' => 'boom']; var_dump($initalConfig);
based on MGtAn
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: initialConfig in /in/TWQ2W on line 4 Fatal error: Uncaught Error: Unsupported operand types in /in/TWQ2W:4 Stack trace: #0 {main} thrown in /in/TWQ2W on line 4
Process exited with code 255.
Output for 5.4.1 - 5.6.28
Notice: Undefined variable: initialConfig in /in/TWQ2W on line 4 Fatal error: Unsupported operand types in /in/TWQ2W on line 4
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/TWQ2W on line 2
Process exited with code 255.