3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $logins = []; for ($i = 1; $i <= 100; $i++) { $logins[] = ['login' => '467979', 'color' => '000000']; } var_dump($logins);
based on sqUrL
Output for 5.4.0 - 7.2.0
array(100) { [0]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [1]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [2]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [3]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [4]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [5]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [6]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [7]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [8]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [9]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [10]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [11]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [12]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [13]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [14]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [15]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [16]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [17]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [18]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [19]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [20]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [21]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [22]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [23]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [24]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [25]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [26]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [27]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [28]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [29]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [30]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [31]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [32]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [33]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [34]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [35]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [36]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [37]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [38]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [39]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [40]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [41]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [42]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [43]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [44]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [45]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [46]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [47]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [48]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [49]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [50]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [51]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [52]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [53]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [54]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [55]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [56]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [57]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [58]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [59]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [60]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [61]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [62]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [63]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [64]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [65]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [66]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [67]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [68]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [69]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [70]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [71]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [72]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [73]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [74]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [75]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [76]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [77]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [78]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [79]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [80]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [81]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [82]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [83]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [84]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [85]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [86]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [87]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [88]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [89]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [90]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [91]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [92]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [93]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [94]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [95]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [96]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [97]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [98]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } [99]=> array(2) { ["login"]=> string(6) "467979" ["color"]=> string(6) "000000" } }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/BProH 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/BProH on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/BProH on line 2
Process exited with code 255.