3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = array_reduce(range(25200, 68400, 900), function ($cur, $x) { $cur[$x] = $x; return $cur; }, array()); var_dump($result);
Output for 5.3.0 - 7.1.0
array(49) { [25200]=> int(25200) [26100]=> int(26100) [27000]=> int(27000) [27900]=> int(27900) [28800]=> int(28800) [29700]=> int(29700) [30600]=> int(30600) [31500]=> int(31500) [32400]=> int(32400) [33300]=> int(33300) [34200]=> int(34200) [35100]=> int(35100) [36000]=> int(36000) [36900]=> int(36900) [37800]=> int(37800) [38700]=> int(38700) [39600]=> int(39600) [40500]=> int(40500) [41400]=> int(41400) [42300]=> int(42300) [43200]=> int(43200) [44100]=> int(44100) [45000]=> int(45000) [45900]=> int(45900) [46800]=> int(46800) [47700]=> int(47700) [48600]=> int(48600) [49500]=> int(49500) [50400]=> int(50400) [51300]=> int(51300) [52200]=> int(52200) [53100]=> int(53100) [54000]=> int(54000) [54900]=> int(54900) [55800]=> int(55800) [56700]=> int(56700) [57600]=> int(57600) [58500]=> int(58500) [59400]=> int(59400) [60300]=> int(60300) [61200]=> int(61200) [62100]=> int(62100) [63000]=> int(63000) [63900]=> int(63900) [64800]=> int(64800) [65700]=> int(65700) [66600]=> int(66600) [67500]=> int(67500) [68400]=> int(68400) }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/B7lAv 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 T_FUNCTION in /in/B7lAv on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/B7lAv on line 3
Process exited with code 255.