3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function evil(...$args) { var_dump($args); } function evilGen($maxArgs) { $i = 0; while ($i<$maxArgs) { yield $i++; } } $args = evilGen(200); evil(...$args);
based on hiOp2
Output for 5.6.7 - 5.6.28, 7.0.0 - 7.1.0
array(200) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) [5]=> int(5) [6]=> int(6) [7]=> int(7) [8]=> int(8) [9]=> int(9) [10]=> int(10) [11]=> int(11) [12]=> int(12) [13]=> int(13) [14]=> int(14) [15]=> int(15) [16]=> int(16) [17]=> int(17) [18]=> int(18) [19]=> int(19) [20]=> int(20) [21]=> int(21) [22]=> int(22) [23]=> int(23) [24]=> int(24) [25]=> int(25) [26]=> int(26) [27]=> int(27) [28]=> int(28) [29]=> int(29) [30]=> int(30) [31]=> int(31) [32]=> int(32) [33]=> int(33) [34]=> int(34) [35]=> int(35) [36]=> int(36) [37]=> int(37) [38]=> int(38) [39]=> int(39) [40]=> int(40) [41]=> int(41) [42]=> int(42) [43]=> int(43) [44]=> int(44) [45]=> int(45) [46]=> int(46) [47]=> int(47) [48]=> int(48) [49]=> int(49) [50]=> int(50) [51]=> int(51) [52]=> int(52) [53]=> int(53) [54]=> int(54) [55]=> int(55) [56]=> int(56) [57]=> int(57) [58]=> int(58) [59]=> int(59) [60]=> int(60) [61]=> int(61) [62]=> int(62) [63]=> int(63) [64]=> int(64) [65]=> int(65) [66]=> int(66) [67]=> int(67) [68]=> int(68) [69]=> int(69) [70]=> int(70) [71]=> int(71) [72]=> int(72) [73]=> int(73) [74]=> int(74) [75]=> int(75) [76]=> int(76) [77]=> int(77) [78]=> int(78) [79]=> int(79) [80]=> int(80) [81]=> int(81) [82]=> int(82) [83]=> int(83) [84]=> int(84) [85]=> int(85) [86]=> int(86) [87]=> int(87) [88]=> int(88) [89]=> int(89) [90]=> int(90) [91]=> int(91) [92]=> int(92) [93]=> int(93) [94]=> int(94) [95]=> int(95) [96]=> int(96) [97]=> int(97) [98]=> int(98) [99]=> int(99) [100]=> int(100) [101]=> int(101) [102]=> int(102) [103]=> int(103) [104]=> int(104) [105]=> int(105) [106]=> int(106) [107]=> int(107) [108]=> int(108) [109]=> int(109) [110]=> int(110) [111]=> int(111) [112]=> int(112) [113]=> int(113) [114]=> int(114) [115]=> int(115) [116]=> int(116) [117]=> int(117) [118]=> int(118) [119]=> int(119) [120]=> int(120) [121]=> int(121) [122]=> int(122) [123]=> int(123) [124]=> int(124) [125]=> int(125) [126]=> int(126) [127]=> int(127) [128]=> int(128) [129]=> int(129) [130]=> int(130) [131]=> int(131) [132]=> int(132) [133]=> int(133) [134]=> int(134) [135]=> int(135) [136]=> int(136) [137]=> int(137) [138]=> int(138) [139]=> int(139) [140]=> int(140) [141]=> int(141) [142]=> int(142) [143]=> int(143) [144]=> int(144) [145]=> int(145) [146]=> int(146) [147]=> int(147) [148]=> int(148) [149]=> int(149) [150]=> int(150) [151]=> int(151) [152]=> int(152) [153]=> int(153) [154]=> int(154) [155]=> int(155) [156]=> int(156) [157]=> int(157) [158]=> int(158) [159]=> int(159) [160]=> int(160) [161]=> int(161) [162]=> int(162) [163]=> int(163) [164]=> int(164) [165]=> int(165) [166]=> int(166) [167]=> int(167) [168]=> int(168) [169]=> int(169) [170]=> int(170) [171]=> int(171) [172]=> int(172) [173]=> int(173) [174]=> int(174) [175]=> int(175) [176]=> int(176) [177]=> int(177) [178]=> int(178) [179]=> int(179) [180]=> int(180) [181]=> int(181) [182]=> int(182) [183]=> int(183) [184]=> int(184) [185]=> int(185) [186]=> int(186) [187]=> int(187) [188]=> int(188) [189]=> int(189) [190]=> int(190) [191]=> int(191) [192]=> int(192) [193]=> int(193) [194]=> int(194) [195]=> int(195) [196]=> int(196) [197]=> int(197) [198]=> int(198) [199]=> int(199) }
Output for hhvm-3.12.0
Warning: Only containers may be unpacked in /in/dO7CW on line 16 array(0) { }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.5.35
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/dO7CW on line 3
Process exited with code 255.
Output for 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE in /in/dO7CW on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected '.', expecting '&' or T_VARIABLE in /in/dO7CW on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '.', expecting ')' in /in/dO7CW on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '.', expecting ')' in /in/dO7CW on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/dO7CW on line 3
Process exited with code 255.