3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php array( [0] => array( [a] => r1, [b] => c1, [c] => d1, ), [1] => array( [a] => r1, [b] => c1, [c] => d2, ), [2] => array( [a] => r1, [b] => c1, [c] => d3, ), [3] => array( [a] => r1, [b] => c2, [c] => d1, ), [4] => array( [a] => r1, [b] => c2, [c] => d3, ), [5] => array( [a] => r1, [b] => c3, [c] => d1, ) );
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 4 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 4 Warning: Illegal offset type in /in/1bmCL on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 5 Notice: Use of undefined constant c1 - assumed 'c1' in /in/1bmCL on line 5 Warning: Illegal offset type in /in/1bmCL on line 5 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 6 Notice: Use of undefined constant d1 - assumed 'd1' in /in/1bmCL on line 6 Warning: Illegal offset type in /in/1bmCL on line 6 Warning: Illegal offset type in /in/1bmCL on line 6 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 9 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 9 Warning: Illegal offset type in /in/1bmCL on line 9 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 10 Notice: Use of undefined constant c1 - assumed 'c1' in /in/1bmCL on line 10 Warning: Illegal offset type in /in/1bmCL on line 10 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 11 Notice: Use of undefined constant d2 - assumed 'd2' in /in/1bmCL on line 11 Warning: Illegal offset type in /in/1bmCL on line 11 Warning: Illegal offset type in /in/1bmCL on line 11 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 14 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 14 Warning: Illegal offset type in /in/1bmCL on line 14 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 15 Notice: Use of undefined constant c1 - assumed 'c1' in /in/1bmCL on line 15 Warning: Illegal offset type in /in/1bmCL on line 15 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 16 Notice: Use of undefined constant d3 - assumed 'd3' in /in/1bmCL on line 16 Warning: Illegal offset type in /in/1bmCL on line 16 Warning: Illegal offset type in /in/1bmCL on line 16 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 19 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 19 Warning: Illegal offset type in /in/1bmCL on line 19 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 20 Notice: Use of undefined constant c2 - assumed 'c2' in /in/1bmCL on line 20 Warning: Illegal offset type in /in/1bmCL on line 20 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 21 Notice: Use of undefined constant d1 - assumed 'd1' in /in/1bmCL on line 21 Warning: Illegal offset type in /in/1bmCL on line 21 Warning: Illegal offset type in /in/1bmCL on line 21 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 24 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 24 Warning: Illegal offset type in /in/1bmCL on line 24 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 25 Notice: Use of undefined constant c2 - assumed 'c2' in /in/1bmCL on line 25 Warning: Illegal offset type in /in/1bmCL on line 25 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 26 Notice: Use of undefined constant d3 - assumed 'd3' in /in/1bmCL on line 26 Warning: Illegal offset type in /in/1bmCL on line 26 Warning: Illegal offset type in /in/1bmCL on line 26 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 29 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 29 Warning: Illegal offset type in /in/1bmCL on line 29 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 30 Notice: Use of undefined constant c3 - assumed 'c3' in /in/1bmCL on line 30 Warning: Illegal offset type in /in/1bmCL on line 30 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 31 Notice: Use of undefined constant d1 - assumed 'd1' in /in/1bmCL on line 31 Warning: Illegal offset type in /in/1bmCL on line 31 Warning: Illegal offset type in /in/1bmCL on line 31
Output for 5.4.0 - 5.6.28
Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 4 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 4 Warning: Illegal offset type in /in/1bmCL on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 5 Notice: Use of undefined constant c1 - assumed 'c1' in /in/1bmCL on line 5 Warning: Illegal offset type in /in/1bmCL on line 5 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 6 Notice: Use of undefined constant d1 - assumed 'd1' in /in/1bmCL on line 6 Warning: Illegal offset type in /in/1bmCL on line 6 Warning: Illegal offset type in /in/1bmCL on line 7 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 9 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 9 Warning: Illegal offset type in /in/1bmCL on line 9 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 10 Notice: Use of undefined constant c1 - assumed 'c1' in /in/1bmCL on line 10 Warning: Illegal offset type in /in/1bmCL on line 10 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 11 Notice: Use of undefined constant d2 - assumed 'd2' in /in/1bmCL on line 11 Warning: Illegal offset type in /in/1bmCL on line 11 Warning: Illegal offset type in /in/1bmCL on line 12 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 14 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 14 Warning: Illegal offset type in /in/1bmCL on line 14 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 15 Notice: Use of undefined constant c1 - assumed 'c1' in /in/1bmCL on line 15 Warning: Illegal offset type in /in/1bmCL on line 15 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 16 Notice: Use of undefined constant d3 - assumed 'd3' in /in/1bmCL on line 16 Warning: Illegal offset type in /in/1bmCL on line 16 Warning: Illegal offset type in /in/1bmCL on line 17 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 19 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 19 Warning: Illegal offset type in /in/1bmCL on line 19 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 20 Notice: Use of undefined constant c2 - assumed 'c2' in /in/1bmCL on line 20 Warning: Illegal offset type in /in/1bmCL on line 20 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 21 Notice: Use of undefined constant d1 - assumed 'd1' in /in/1bmCL on line 21 Warning: Illegal offset type in /in/1bmCL on line 21 Warning: Illegal offset type in /in/1bmCL on line 22 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 24 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 24 Warning: Illegal offset type in /in/1bmCL on line 24 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 25 Notice: Use of undefined constant c2 - assumed 'c2' in /in/1bmCL on line 25 Warning: Illegal offset type in /in/1bmCL on line 25 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 26 Notice: Use of undefined constant d3 - assumed 'd3' in /in/1bmCL on line 26 Warning: Illegal offset type in /in/1bmCL on line 26 Warning: Illegal offset type in /in/1bmCL on line 27 Notice: Use of undefined constant a - assumed 'a' in /in/1bmCL on line 29 Notice: Use of undefined constant r1 - assumed 'r1' in /in/1bmCL on line 29 Warning: Illegal offset type in /in/1bmCL on line 29 Notice: Use of undefined constant b - assumed 'b' in /in/1bmCL on line 30 Notice: Use of undefined constant c3 - assumed 'c3' in /in/1bmCL on line 30 Warning: Illegal offset type in /in/1bmCL on line 30 Notice: Use of undefined constant c - assumed 'c' in /in/1bmCL on line 31 Notice: Use of undefined constant d1 - assumed 'd1' in /in/1bmCL on line 31 Warning: Illegal offset type in /in/1bmCL on line 31 Warning: Illegal offset type in /in/1bmCL on line 33
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/1bmCL on line 3
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 '[', expecting ')' in /in/1bmCL on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/1bmCL on line 3
Process exited with code 255.