3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pivot = []; $n = 0; for ($i = 1; $i <= 100; $i++) { $pivot[$i] = []; } print_r($pivot); /* for($i = 0; $i <= 100; $n++) { $user = rand($i, 100); $rand = rand(0, 100); $random = $rand != $user ? $rand : $rand + 1; $array[$user] = array$random; if($n == 10) { $i++; $n = 0; } } print_r($array);*/
based on EA73b
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [1] => Array ( ) [2] => Array ( ) [3] => Array ( ) [4] => Array ( ) [5] => Array ( ) [6] => Array ( ) [7] => Array ( ) [8] => Array ( ) [9] => Array ( ) [10] => Array ( ) [11] => Array ( ) [12] => Array ( ) [13] => Array ( ) [14] => Array ( ) [15] => Array ( ) [16] => Array ( ) [17] => Array ( ) [18] => Array ( ) [19] => Array ( ) [20] => Array ( ) [21] => Array ( ) [22] => Array ( ) [23] => Array ( ) [24] => Array ( ) [25] => Array ( ) [26] => Array ( ) [27] => Array ( ) [28] => Array ( ) [29] => Array ( ) [30] => Array ( ) [31] => Array ( ) [32] => Array ( ) [33] => Array ( ) [34] => Array ( ) [35] => Array ( ) [36] => Array ( ) [37] => Array ( ) [38] => Array ( ) [39] => Array ( ) [40] => Array ( ) [41] => Array ( ) [42] => Array ( ) [43] => Array ( ) [44] => Array ( ) [45] => Array ( ) [46] => Array ( ) [47] => Array ( ) [48] => Array ( ) [49] => Array ( ) [50] => Array ( ) [51] => Array ( ) [52] => Array ( ) [53] => Array ( ) [54] => Array ( ) [55] => Array ( ) [56] => Array ( ) [57] => Array ( ) [58] => Array ( ) [59] => Array ( ) [60] => Array ( ) [61] => Array ( ) [62] => Array ( ) [63] => Array ( ) [64] => Array ( ) [65] => Array ( ) [66] => Array ( ) [67] => Array ( ) [68] => Array ( ) [69] => Array ( ) [70] => Array ( ) [71] => Array ( ) [72] => Array ( ) [73] => Array ( ) [74] => Array ( ) [75] => Array ( ) [76] => Array ( ) [77] => Array ( ) [78] => Array ( ) [79] => Array ( ) [80] => Array ( ) [81] => Array ( ) [82] => Array ( ) [83] => Array ( ) [84] => Array ( ) [85] => Array ( ) [86] => Array ( ) [87] => Array ( ) [88] => Array ( ) [89] => Array ( ) [90] => Array ( ) [91] => Array ( ) [92] => Array ( ) [93] => Array ( ) [94] => Array ( ) [95] => Array ( ) [96] => Array ( ) [97] => Array ( ) [98] => Array ( ) [99] => Array ( ) [100] => Array ( ) )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/9C7ld on line 4
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/9C7ld on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/9C7ld on line 4
Process exited with code 255.