3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = []; $b = ["item_data"=>[a,b,c]]; $b = ["item_data"=>[d,e,f]]; $c = array_merge($a,$b,$c); var_dump($c);
based on EZpHA
Output for 5.4.0 - 7.1.0
Notice: Use of undefined constant a - assumed 'a' in /in/PENJd on line 3 Notice: Use of undefined constant b - assumed 'b' in /in/PENJd on line 3 Notice: Use of undefined constant c - assumed 'c' in /in/PENJd on line 3 Notice: Use of undefined constant d - assumed 'd' in /in/PENJd on line 4 Notice: Use of undefined constant e - assumed 'e' in /in/PENJd on line 4 Notice: Use of undefined constant f - assumed 'f' in /in/PENJd on line 4 Notice: Undefined variable: c in /in/PENJd on line 5 Warning: array_merge(): Argument #3 is not an array in /in/PENJd on line 5 NULL
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/PENJd on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/PENJd on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/PENJd on line 2
Process exited with code 255.