3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array( [0] => 3048290, [1] => 3033750, [2] => 2588998, [3] => 3228518, [4] => 3185359, [5] => 3211335, [6] => 3111878, [7] => 3064547, [8] => 3110350, [9] => 2931782, [10] => 3212456, [11] => 3186852, [12] => 3176989, [13] => 3213211, [14] => 2825311, [15] => 3104971, [16] => 3066410, [17] => 3146341, [18] => 2773245, [19] => 3232723, [20] => 1249226, [21] => 3146863, [22] => 3163831, [23] => 3254648, [24] => 2791337, [25] => 2703613, [26] => 3060139, [27] => 2632828, [28] => 3119411, [29] => 2682857, [30] => 3135576, [31] => 3152855, [32] => 2659275 );
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 3 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 4 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 5 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 6 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 7 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 8 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 9 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 10 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 11 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 12 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 13 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 14 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 15 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 16 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 17 Warning: Invalid operand type was used: Invalid type used as key in /in/muN8M on line 18
Output for 5.4.0 - 5.6.28
Warning: Illegal offset type in /in/muN8M on line 3 Warning: Illegal offset type in /in/muN8M on line 4 Warning: Illegal offset type in /in/muN8M on line 5 Warning: Illegal offset type in /in/muN8M on line 6 Warning: Illegal offset type in /in/muN8M on line 7 Warning: Illegal offset type in /in/muN8M on line 8 Warning: Illegal offset type in /in/muN8M on line 9 Warning: Illegal offset type in /in/muN8M on line 10 Warning: Illegal offset type in /in/muN8M on line 11 Warning: Illegal offset type in /in/muN8M on line 12 Warning: Illegal offset type in /in/muN8M on line 13 Warning: Illegal offset type in /in/muN8M on line 14 Warning: Illegal offset type in /in/muN8M on line 15 Warning: Illegal offset type in /in/muN8M on line 16 Warning: Illegal offset type in /in/muN8M on line 17 Warning: Illegal offset type in /in/muN8M on line 18 Warning: Illegal offset type in /in/muN8M on line 19 Warning: Illegal offset type in /in/muN8M on line 20 Warning: Illegal offset type in /in/muN8M on line 21 Warning: Illegal offset type in /in/muN8M on line 22 Warning: Illegal offset type in /in/muN8M on line 23 Warning: Illegal offset type in /in/muN8M on line 24 Warning: Illegal offset type in /in/muN8M on line 25 Warning: Illegal offset type in /in/muN8M on line 26 Warning: Illegal offset type in /in/muN8M on line 27 Warning: Illegal offset type in /in/muN8M on line 28 Warning: Illegal offset type in /in/muN8M on line 29 Warning: Illegal offset type in /in/muN8M on line 30 Warning: Illegal offset type in /in/muN8M on line 31 Warning: Illegal offset type in /in/muN8M on line 32 Warning: Illegal offset type in /in/muN8M on line 33 Warning: Illegal offset type in /in/muN8M on line 34 Warning: Illegal offset type in /in/muN8M on line 36
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/muN8M 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/muN8M on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/muN8M on line 3
Process exited with code 255.