3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $a = rand(), "\r\n";; echo rand() . "\r\n";; echo rand() . "\r\n";; srand($a); echo rand() . "\r\n"; echo rand() . "\r\n";;
Output for 7.1.0
1520356032 953791144 1121401009 662404308 989862068
Output for 7.0.14
2106058751 1280682665 695321027 1482433129 287601765
Output for 7.0.6
38866164 38177238 1290117601 265342930 1598997857
Output for 7.0.5
1813569957 19900794 147428664 147770029 670030380
Output for 7.0.4
1568076396 185682880 1375927939 1041775987 1703081942
Output for 7.0.3
802721521 2137291842 295142873 307408713 1139790299
Output for 7.0.2
152437288 1484311620 788255004 607517418 1748085252
Output for 7.0.1
312826717 1524247118 198007224 1264584813 1163676746
Output for 7.0.0
1645466642 1494000948 1519420609 58577212 124847570
Output for hhvm-3.12.0
802642853 1515728223 755967051 1345078503 402616757
Output for hhvm-3.10.0
47098780 2118926612 2137402774 364091922 1164155865
Output for 5.6.28
1319870787 1423764774 1522478509 1979543009 186859926
Output for 5.6.21
425575203 240428488 1419454693 1024955145 696792257
Output for 5.6.20
677388849 1737499283 324438462 643536790 1115588860
Output for 5.6.19
1002284668 2117502375 428275174 1512700952 240537441
Output for 5.6.18
586218738 532568525 793598561 458604534 1221733702
Output for 5.6.17
2009489950 491617011 1598652373 1391543509 905893516
Output for 5.6.16
97494705 287713332 1785285669 504420079 344668482
Output for 5.6.15
359510060 922285825 1041530974 1262622625 1437282292
Output for 5.6.14
1781501935 145674517 594360920 194830418 2062690881
Output for 5.6.13
436913471 852885677 992692870 423390816 153054699
Output for 5.6.12
593370915 1591791600 1592948359 733164489 1603923101
Output for 5.6.11
687610903 303353487 1265765647 140152900 1852057436
Output for 5.6.10
717609063 543638646 115270510 2132452466 1004869605
Output for 5.6.9
319423305 1115736305 1275530311 839689292 840322806
Output for 5.6.8
788689197 1211458909 1452811035 882135550 1407917027
Output for 5.5.35
213641103 305771003 904457903 760299020 1943148690
Output for 5.5.34
483420346 1156055559 450172560 1385635816 1188636630
Output for 5.5.33
282118971 877821095 155879045 2001058483 1465235102
Output for 5.5.32
1808420809 2053074687 1965640014 847103350 1686244429
Output for 5.5.31
2084483589 1850068926 1176269453 772301848 30980952
Output for 5.5.30
1271334211 123843113 547176101 684357861 1944873361
Output for 5.5.29
165007093 149402101 585640439 803369057 203119957
Output for 5.5.28
1279441457 1881629674 837657173 1723282512 1939487313
Output for 5.5.27
30897429 491230410 997312300 364990595 1664938631
Output for 5.5.26
1059816393 1819842143 889173211 1529842771 2074477112
Output for 5.5.25
1285016740 1025878597 1760617535 1317646926 975133951
Output for 5.5.24
1234076553 1421928967 1671082220 1259393226 1960444054
Output for 5.4.45
1312673450 858395747 1271716409 790488706 1960041342
Output for 5.4.44
1690337420 1841223258 361268272 12941464 1267306880
Output for 5.4.43
1362421944 1289546607 280182141 1707234671 1075943668
Output for 5.4.42
139185218 1490090968 1740486608 1633929983 924003520
Output for 5.4.41
558511059 1917261444 1449853835 1524155699 1198409826
Output for 5.4.40
420115810 1172334627 1568538558 1688417341 1327891410
Output for 5.4.39
2042734908 72484792 2048943913 1308008311 2060969247
Output for 5.4.38
1717172441 531730314 450569488 1255373846 1639660413
Output for 5.4.37
823857386 242505750 517741289 1801052565 484568790
Output for 5.4.36
1329669548 1100295522 384147506 1216189232 793094102
Output for 5.4.35
1251738084 1673473258 1810431704 2093332639 1263568458
Output for 5.4.34
1078737879 95036104 1289683852 1947472059 987808809
Output for 5.4.32
8212969 1726345922 1592112957 944914116 1238480913
Output for 5.4.31
1699036165 1221991940 627290169 1560388765 2063282954
Output for 5.4.30
734533338 261078749 1467693758 1684730122 183438713
Output for 5.4.29
426059113 1499530635 833112403 12546512 647299828
Output for 5.4.28
545528770 239203134 210784565 472273440 318634639
Output for 5.4.27
410889288 175234940 137643821 1066994158 1893566471
Output for 5.4.26
570833471 1099429391 1565084001 356150530 630406602
Output for 5.4.25
1872974704 1948167956 571643034 1428484400 1258654070
Output for 5.4.24
1995254203 923966697 216670705 518834960 2032257488
Output for 5.4.23
948202209 565869475 897976841 1385851207 1715309347
Output for 5.4.22
812375489 1106118008 1569511591 1954149412 718615157
Output for 5.4.21
501685757 447371928 276040655 1865266365 839541368
Output for 5.4.20
502556445 55831163 735962326 1683512198 2075593232
Output for 5.4.19
1406042017 1476318231 233086839 2096681521 1416860514
Output for 5.4.18
2045172583 24042873 1866532877 1869228445 1762139520
Output for 5.4.17
83055911 757984464 1341588800 1942718443 1931773287
Output for 5.4.16
1891091432 1552992204 805057188 892599711 1255080792
Output for 5.4.15
663390961 1926257179 1563754125 1578123003 693409846
Output for 5.4.14
1735892159 102987451 868301046 486488694 645396500
Output for 5.4.13
1706641682 996323619 1222290706 454086887 1898834841
Output for 5.4.12
1820675325 1450705464 635070068 653958173 1789571147
Output for 5.4.11
554585827 1783538843 1310705050 419797023 1100248407
Output for 5.4.10
969394844 1576483503 418155017 135862905 656758694
Output for 5.4.9
33508688 806541004 768841735 1982198434 1027213078
Output for 5.4.8
2013492859 474871032 643814046 1122696631 967020791
Output for 5.4.7
1071285779 434608701 1939850820 989311543 1873149466
Output for 5.4.6
354625873 1792958279 19902508 1199344869 1277869471
Output for 5.4.5
895914863 1746916332 1777531072 353727064 176968455
Output for 5.4.4
1612634296 890569701 524969657 721764317 1112745918
Output for 5.4.3
654331561 406720838 638231343 1247956657 1358882502
Output for 5.4.2
1335709684 1620797226 1107593898 1631338995 1942467658
Output for 5.4.1
258564390 1659712791 130372894 1042352043 1332879905
Output for 5.4.0
234509350 1803204588 1443965455 1485664577 1297496389
Output for 5.3.29
313597188 606120057 786768858 562561497 870540642
Output for 5.3.28
897827128 1939868118 751646908 311479284 704827270
Output for 5.3.27
409975449 703735970 2062595020 1368008042 376149761
Output for 5.3.26
1525350785 2074381332 526779817 713444958 351968882
Output for 5.3.25
489707020 1281627181 251500253 1192681848 972328876
Output for 5.3.24
527768170 1754907214 935039916 40102624 2106808853
Output for 5.3.23
777102945 186494032 1566799126 1640580133 1595249593
Output for 5.3.22
1162353249 2013619425 1120569065 1265808814 1748581276
Output for 5.3.21
1182771747 895084400 1594764708 1101092121 1338641235
Output for 5.3.20
813968418 1145547938 1847659867 737020692 280867604
Output for 5.3.19
2054792675 1965000976 854264032 354094534 578011104
Output for 5.3.18
1573738302 1049328923 1816577419 1553390730 1507511555
Output for 5.3.17
1132093484 2022679110 575681467 508689310 1142812670
Output for 5.3.16
1901920226 1760581461 1622491662 1049975058 2123128854
Output for 5.3.15
812106415 1920868586 1437227027 521410892 844568285
Output for 5.3.14
383155741 572220092 50746308 904827434 1982067119
Output for 5.3.13
1294914851 612813204 1509519156 607979559 658176439
Output for 5.3.12
900915170 846970517 377041762 528792813 1090980384
Output for 5.3.11
121849239 1406626 1241058591 234591300 828361226
Output for 5.3.10
1005717939 1890402695 1471714087 1872644184 1088295822
Output for 5.3.9
1331997381 1758754151 487753913 390469727 1420392468
Output for 5.3.8
1094303275 1250248527 1729024912 80482018 1411907730
Output for 5.3.7
1423500830 143156272 1991006476 1809048450 2034401332
Output for 5.3.6
1931833739 727695236 1024398217 320144585 2100945357
Output for 5.3.5
984455914 1996064397 643537636 1038487297 1445326568
Output for 5.3.4
999775234 978637217 671997251 2066170889 733534284
Output for 5.3.3
2112935655 1322951011 1652602081 138509704 1555262885
Output for 5.3.2
1790146141 213842133 504555749 311500950 1286614405
Output for 5.3.1
771773216 1097658429 1752938701 1114858436 184143912
Output for 5.3.0
2126429988 688102037 1328028880 1580365709 169233737
Output for 5.2.17
337933279 295684059 1187317568 74752148 584456184
Output for 5.2.16
1733034104 1991522292 397459094 1713721020 355120049
Output for 5.2.15
1186238932 1753163524 128845439 579456797 142764590
Output for 5.2.14
1464511932 1160164561 1392595265 530579916 58488237
Output for 5.2.13
1506861366 355071144 1560693797 407018178 137912212
Output for 5.2.12
263324241 891659838 1368740870 1106311276 1101861108
Output for 5.2.11
279243371 372158515 1548145952 504866168 1366190184
Output for 5.2.10
1032828520 818714247 1380204130 157038557 1798736354
Output for 5.2.9
1599794599 683125322 1828257224 912377777 1939364050
Output for 5.2.8
1259139173 1684732689 771198614 1321150143 588079572
Output for 5.2.7
1968427190 259225880 717525941 141293257 1461079991
Output for 5.2.6
907060972 571416396 1001864659 1058161000 1302463342
Output for 5.2.5
705234751 701882181 979986742 1343825803 1289894340
Output for 5.2.4
800348717 1590438575 2015390820 702937580 648360638
Output for 5.2.3
1322151033 630439329 2048502153 1766667381 1821227579
Output for 5.2.2
507331635 697692407 918506714 1073170860 57263343
Output for 5.2.1
471386874 1695809035 143284994 1969931727 886262807
Output for 5.2.0
185829337 1524273643 1545312019 373420173 1231605626
Output for 5.1.6
1018350954 775084675 1989792351 308977457 1724175095
Output for 5.1.5
954227510 760312389 749833821 600388030 774089420
Output for 5.1.4
724511280 747609878 1787723297 72257878 1601731666
Output for 5.1.3
1665348641 530981311 819692294 1268880795 320358870
Output for 5.1.2
192094501 1706287032 389055222 1814378786 479295938
Output for 5.1.1
94464062 610016411 1283617891 585330092 1321333968
Output for 5.1.0
2050992445 815271914 1385364114 708982992 1103555869
Output for 5.0.5
827318142 1892156147 950350432 1243155378 1096547341
Output for 5.0.4
776502754 2073665389 38574082 2114305627 889720987
Output for 5.0.3
788827787 1381985000 607593028 1631523302 695305547
Output for 5.0.2
1030937224 1176341472 1521546150 974345526 798506590
Output for 5.0.1
1170113934 1171709879 478644281 1378073793 808093547
Output for 5.0.0
1753822108 1223046027 81576737 1442727057 1992996527
Output for 4.4.9
1679866497 932142153 459414583 1369158479 8479756
Output for 4.4.8
1950623679 244948450 2142253852 917671837 28687177
Output for 4.4.7
1110567360 661826522 205073802 1349052233 1751425317
Output for 4.4.6
489697523 1045800808 111288295 1131385060 1021690369
Output for 4.4.5
275631165 621432828 522351507 838097827 1148555832
Output for 4.4.4
399316996 139067816 1385579966 699466859 1080106419
Output for 4.4.3
1231213507 1186595042 927693950 2115794027 249101458
Output for 4.4.2
867845948 483418305 415396608 1084139866 531252686
Output for 4.4.1
857830069 1418073794 150181331 1454538856 1707100933
Output for 4.4.0
1387956555 296790407 1469484805 1760175865 1892989032
Output for 4.3.11
1758215342 949379945 12672772 229150798 511034014
Output for 4.3.10
1716030162 1186371592 1772163173 2082467761 95041919
Output for 4.3.9
792862950 724139019 1267492959 662531053 412071377
Output for 4.3.8
552619517 1849133939 159119374 182215839 1267043722
Output for 4.3.7
737328100 1429814573 1353782519 1685609114 899834969
Output for 4.3.6
747096700 73566295 2119602356 724067646 1978853036
Output for 4.3.5
1128070683 1464283796 884869254 1017176243 1294465949
Output for 4.3.4
1058455431 932130177 1151343438 89834502 1297350727
Output for 4.3.3
509484526 2011904713 64802038 2049561711 1138948947
Output for 4.3.2
1085616996 1364057645 736733204 797144011 1463352027
Output for 4.3.1
1129977130 1562056576 1024345393 1927767691 1225994413
Output for 4.3.0
1416300205 486461769 1560620592 928121212 1237096041