3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mt_srand(13371337); $a = array(); for ($i = 0; $i < 100; $i++) $a[] = mt_rand(); var_dump($a);
Output for 7.1.0
array(100) { [0]=> int(655014982) [1]=> int(8709339) [2]=> int(573921031) [3]=> int(849051425) [4]=> int(928010133) [5]=> int(1690230614) [6]=> int(1783684880) [7]=> int(1337360976) [8]=> int(581069738) [9]=> int(998716952) [10]=> int(1491771744) [11]=> int(1045729351) [12]=> int(618087074) [13]=> int(562184521) [14]=> int(291595876) [15]=> int(1244927798) [16]=> int(857176350) [17]=> int(1593911730) [18]=> int(149077783) [19]=> int(1408842009) [20]=> int(1052546339) [21]=> int(630248389) [22]=> int(2144431522) [23]=> int(20257354) [24]=> int(296500258) [25]=> int(538466735) [26]=> int(1750141331) [27]=> int(39955158) [28]=> int(70540254) [29]=> int(1745435284) [30]=> int(445891786) [31]=> int(494507252) [32]=> int(87766093) [33]=> int(1454403603) [34]=> int(182820088) [35]=> int(521956579) [36]=> int(1653840532) [37]=> int(1430183268) [38]=> int(431991324) [39]=> int(1981934029) [40]=> int(1497738669) [41]=> int(512514472) [42]=> int(1894427589) [43]=> int(860779153) [44]=> int(343244639) [45]=> int(1128316821) [46]=> int(352168205) [47]=> int(1034365734) [48]=> int(409240121) [49]=> int(1263690450) [50]=> int(2008228532) [51]=> int(718642539) [52]=> int(1106228651) [53]=> int(852572656) [54]=> int(1807401735) [55]=> int(235478127) [56]=> int(713655145) [57]=> int(1152344988) [58]=> int(1321585250) [59]=> int(853718938) [60]=> int(819306998) [61]=> int(272335590) [62]=> int(186150620) [63]=> int(847668734) [64]=> int(1086893580) [65]=> int(900568943) [66]=> int(475253703) [67]=> int(1358254419) [68]=> int(1321869770) [69]=> int(1610896306) [70]=> int(2069599591) [71]=> int(1994685087) [72]=> int(1818992500) [73]=> int(1651835033) [74]=> int(1836853572) [75]=> int(897848229) [76]=> int(1266786213) [77]=> int(1595308535) [78]=> int(450816166) [79]=> int(48622460) [80]=> int(125177241) [81]=> int(1470577327) [82]=> int(802085996) [83]=> int(209308166) [84]=> int(918675428) [85]=> int(959605951) [86]=> int(1884160581) [87]=> int(1842501042) [88]=> int(1358472266) [89]=> int(1999007938) [90]=> int(622380398) [91]=> int(1148038206) [92]=> int(1126400622) [93]=> int(2076724634) [94]=> int(1740193613) [95]=> int(435235522) [96]=> int(656559342) [97]=> int(1795396321) [98]=> int(726027384) [99]=> int(690465465) }
Output for 5.2.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
array(100) { [0]=> int(1480673584) [1]=> int(8709339) [2]=> int(1568580209) [3]=> int(849051425) [4]=> int(928010133) [5]=> int(469051936) [6]=> int(354101862) [7]=> int(1337360976) [8]=> int(581069738) [9]=> int(1154270062) [10]=> int(1491771744) [11]=> int(1092576561) [12]=> int(618087074) [13]=> int(1590277183) [14]=> int(1848283922) [15]=> int(897573440) [16]=> int(1281133672) [17]=> int(541777092) [18]=> int(2007583329) [19]=> int(1408842009) [20]=> int(1106731093) [21]=> int(630248389) [22]=> int(2144431522) [23]=> int(2122247996) [24]=> int(296500258) [25]=> int(1599319257) [26]=> int(387644645) [27]=> int(2099928992) [28]=> int(70540254) [29]=> int(1745435284) [30]=> int(1708667324) [31]=> int(1647468930) [32]=> int(2054209851) [33]=> int(704349541) [34]=> int(182820088) [35]=> int(521956579) [36]=> int(500723682) [37]=> int(712321042) [38]=> int(431991324) [39]=> int(157949115) [40]=> int(1497738669) [41]=> int(1640475870) [42]=> int(262233779) [43]=> int(1275430887) [44]=> int(343244639) [45]=> int(1007373027) [46]=> int(1807113339) [47]=> int(1034365734) [48]=> int(409240121) [49]=> int(1263690450) [50]=> int(2008228532) [51]=> int(1436444701) [52]=> int(1106228651) [53]=> int(852572656) [54]=> int(351352433) [55]=> int(235478127) [56]=> int(1438807583) [57]=> int(1152344988) [58]=> int(831405844) [59]=> int(1302938348) [60]=> int(819306998) [61]=> int(272335590) [62]=> int(1951636394) [63]=> int(847668734) [64]=> int(1065573242) [65]=> int(1256612377) [66]=> int(1662533297) [67]=> int(801023013) [68]=> int(830592188) [69]=> int(525313732) [70]=> int(2069599591) [71]=> int(162500585) [72]=> int(1818992500) [73]=> int(1651835033) [74]=> int(305650738) [75]=> int(897848229) [76]=> int(1266786213) [77]=> int(543001729) [78]=> int(1704271312) [79]=> int(48622460) [80]=> int(125177241) [81]=> int(1470577327) [82]=> int(802085996) [83]=> int(1932672880) [84]=> int(918675428) [85]=> int(1182374345) [86]=> int(1884160581) [87]=> int(1842501042) [88]=> int(1358472266) [89]=> int(141395380) [90]=> int(622380398) [91]=> int(992368968) [92]=> int(1013479192) [93]=> int(75741420) [94]=> int(1740193613) [95]=> int(435235522) [96]=> int(656559342) [97]=> int(1795396321) [98]=> int(1410185486) [99]=> int(690465465) }
Output for 4.3.0 - 5.2.0
array(100) { [0]=> int(297105878) [1]=> int(25601159) [2]=> int(697838696) [3]=> int(1447579184) [4]=> int(720068399) [5]=> int(2120622397) [6]=> int(2073587652) [7]=> int(687014521) [8]=> int(1635318807) [9]=> int(882971001) [10]=> int(134747841) [11]=> int(1460191075) [12]=> int(1621978957) [13]=> int(49529300) [14]=> int(1063211631) [15]=> int(670024613) [16]=> int(1488900442) [17]=> int(842553596) [18]=> int(1349853663) [19]=> int(866408025) [20]=> int(43687022) [21]=> int(826582349) [22]=> int(152211993) [23]=> int(1009779589) [24]=> int(242736506) [25]=> int(705187258) [26]=> int(1489304095) [27]=> int(1452085683) [28]=> int(1987027734) [29]=> int(1061970095) [30]=> int(413677977) [31]=> int(58088907) [32]=> int(1559875872) [33]=> int(196706714) [34]=> int(612445867) [35]=> int(1894210179) [36]=> int(1062723032) [37]=> int(443402895) [38]=> int(2063548491) [39]=> int(200077863) [40]=> int(652729457) [41]=> int(1027896687) [42]=> int(1588268453) [43]=> int(871504632) [44]=> int(1801426841) [45]=> int(194066987) [46]=> int(1490980130) [47]=> int(1897440133) [48]=> int(401784250) [49]=> int(186034000) [50]=> int(1703272009) [51]=> int(1802262264) [52]=> int(1266620404) [53]=> int(996065002) [54]=> int(1008388191) [55]=> int(1230570081) [56]=> int(1710606038) [57]=> int(1352404747) [58]=> int(993287182) [59]=> int(973410406) [60]=> int(1855391436) [61]=> int(983883951) [62]=> int(106310661) [63]=> int(2004784947) [64]=> int(1460531803) [65]=> int(882174229) [66]=> int(1317043610) [67]=> int(1306943829) [68]=> int(549672838) [69]=> int(446558077) [70]=> int(729728947) [71]=> int(1014520935) [72]=> int(1543687349) [73]=> int(13167256) [74]=> int(1714003999) [75]=> int(1967512786) [76]=> int(906353951) [77]=> int(962063614) [78]=> int(204341998) [79]=> int(1914767538) [80]=> int(1924195486) [81]=> int(991877314) [82]=> int(1558817054) [83]=> int(1006200870) [84]=> int(202841459) [85]=> int(2024422634) [86]=> int(1239843181) [87]=> int(2019708347) [88]=> int(438407777) [89]=> int(1668372077) [90]=> int(330948937) [91]=> int(355091445) [92]=> int(1842818663) [93]=> int(78502669) [94]=> int(526184068) [95]=> int(190961716) [96]=> int(2090988380) [97]=> int(1914268488) [98]=> int(2133043377) [99]=> int(2147409659) }