3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $EyfsAreScores = [ 0 => 4, 2 => [0 => 0, 5 => 2, 11 => 1], 4 => [0 => 0, 7 => 2, 11 => 1], 6 => [0 => 0, 9 => 2, 11 => 1], 8 => [0 => 0, 7 => 4, 9 => 3, 15 => 2, 21 => 1], 10 => [0 => 0, 7 => 4, 11 => 3, 17 => 2, 21 => 1], 12 => [0 => 0, 7 => 4, 13 => 3, 19 => 2, 21 => 1], 14 => [0 => 0, 15 => 4, 17 => 3, 21 => 2, 27 => 1], 16 => [0 => 0, 15 => 4, 19 => 3, 23 => 2, 27 => 1], 18 => [0 => 0, 15 => 4, 21 => 3, 25 => 2, 27 => 1], 20 => [0 => 0, 21 => 4, 23 => 3, 31 => 2, 37 => 1], 22 => [0 => 0, 21 => 4, 25 => 3, 33 => 2, 37 => 1], 24 => [0 => 0, 21 => 4, 27 => 3, 35 => 2, 37 => 1], 26 => [0 => 0, 29 => 4, 33 => 3, 45 => 2, 51 => 1], 28 => [0 => 0, 29 => 4, 35 => 3, 49 => 2, 53 => 1], 30 => [0 => 0, 29 => 4, 39 => 3, 51 => 2, 55 => 1], 32 => [0 => 0, 39 => 4, 45 => 3, 55 => 2, 57 => 1], 34 => [0 => 0, 39 => 4, 55 => 3, 63 => 2, 67 => 1], 36 => [0 => 1, 53 => 4, 59 => 3, 69 => 2], 37 => [0 => 2, 63 => 4, 65 => 3], 38 => [0 => 3, 69 => 4] ]; for ($i = 2; $i < 37; $i = $i + 2) { $EyfsAreScores[$i-1] = $EyfsAreScores[$i]; } var_dump($EyfsAreScores);
based on TEdXU
Output for 5.4.0 - 7.2.0
array(39) { [0]=> int(4) [2]=> array(3) { [0]=> int(0) [5]=> int(2) [11]=> int(1) } [4]=> array(3) { [0]=> int(0) [7]=> int(2) [11]=> int(1) } [6]=> array(3) { [0]=> int(0) [9]=> int(2) [11]=> int(1) } [8]=> array(5) { [0]=> int(0) [7]=> int(4) [9]=> int(3) [15]=> int(2) [21]=> int(1) } [10]=> array(5) { [0]=> int(0) [7]=> int(4) [11]=> int(3) [17]=> int(2) [21]=> int(1) } [12]=> array(5) { [0]=> int(0) [7]=> int(4) [13]=> int(3) [19]=> int(2) [21]=> int(1) } [14]=> array(5) { [0]=> int(0) [15]=> int(4) [17]=> int(3) [21]=> int(2) [27]=> int(1) } [16]=> array(5) { [0]=> int(0) [15]=> int(4) [19]=> int(3) [23]=> int(2) [27]=> int(1) } [18]=> array(5) { [0]=> int(0) [15]=> int(4) [21]=> int(3) [25]=> int(2) [27]=> int(1) } [20]=> array(5) { [0]=> int(0) [21]=> int(4) [23]=> int(3) [31]=> int(2) [37]=> int(1) } [22]=> array(5) { [0]=> int(0) [21]=> int(4) [25]=> int(3) [33]=> int(2) [37]=> int(1) } [24]=> array(5) { [0]=> int(0) [21]=> int(4) [27]=> int(3) [35]=> int(2) [37]=> int(1) } [26]=> array(5) { [0]=> int(0) [29]=> int(4) [33]=> int(3) [45]=> int(2) [51]=> int(1) } [28]=> array(5) { [0]=> int(0) [29]=> int(4) [35]=> int(3) [49]=> int(2) [53]=> int(1) } [30]=> array(5) { [0]=> int(0) [29]=> int(4) [39]=> int(3) [51]=> int(2) [55]=> int(1) } [32]=> array(5) { [0]=> int(0) [39]=> int(4) [45]=> int(3) [55]=> int(2) [57]=> int(1) } [34]=> array(5) { [0]=> int(0) [39]=> int(4) [55]=> int(3) [63]=> int(2) [67]=> int(1) } [36]=> array(4) { [0]=> int(1) [53]=> int(4) [59]=> int(3) [69]=> int(2) } [37]=> array(3) { [0]=> int(2) [63]=> int(4) [65]=> int(3) } [38]=> array(2) { [0]=> int(3) [69]=> int(4) } [1]=> array(3) { [0]=> int(0) [5]=> int(2) [11]=> int(1) } [3]=> array(3) { [0]=> int(0) [7]=> int(2) [11]=> int(1) } [5]=> array(3) { [0]=> int(0) [9]=> int(2) [11]=> int(1) } [7]=> array(5) { [0]=> int(0) [7]=> int(4) [9]=> int(3) [15]=> int(2) [21]=> int(1) } [9]=> array(5) { [0]=> int(0) [7]=> int(4) [11]=> int(3) [17]=> int(2) [21]=> int(1) } [11]=> array(5) { [0]=> int(0) [7]=> int(4) [13]=> int(3) [19]=> int(2) [21]=> int(1) } [13]=> array(5) { [0]=> int(0) [15]=> int(4) [17]=> int(3) [21]=> int(2) [27]=> int(1) } [15]=> array(5) { [0]=> int(0) [15]=> int(4) [19]=> int(3) [23]=> int(2) [27]=> int(1) } [17]=> array(5) { [0]=> int(0) [15]=> int(4) [21]=> int(3) [25]=> int(2) [27]=> int(1) } [19]=> array(5) { [0]=> int(0) [21]=> int(4) [23]=> int(3) [31]=> int(2) [37]=> int(1) } [21]=> array(5) { [0]=> int(0) [21]=> int(4) [25]=> int(3) [33]=> int(2) [37]=> int(1) } [23]=> array(5) { [0]=> int(0) [21]=> int(4) [27]=> int(3) [35]=> int(2) [37]=> int(1) } [25]=> array(5) { [0]=> int(0) [29]=> int(4) [33]=> int(3) [45]=> int(2) [51]=> int(1) } [27]=> array(5) { [0]=> int(0) [29]=> int(4) [35]=> int(3) [49]=> int(2) [53]=> int(1) } [29]=> array(5) { [0]=> int(0) [29]=> int(4) [39]=> int(3) [51]=> int(2) [55]=> int(1) } [31]=> array(5) { [0]=> int(0) [39]=> int(4) [45]=> int(3) [55]=> int(2) [57]=> int(1) } [33]=> array(5) { [0]=> int(0) [39]=> int(4) [55]=> int(3) [63]=> int(2) [67]=> int(1) } [35]=> array(4) { [0]=> int(1) [53]=> int(4) [59]=> int(3) [69]=> int(2) } }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/oY4Rv 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 '[' in /in/oY4Rv on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/oY4Rv on line 3
Process exited with code 255.