3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php mt_srand(987654321, MT_RAND_PHP); echo mt_rand(), "\n"; echo mt_rand(), "\n"; ?>
based on iStBT
Output for 7.1.0 - 7.3.1
1981570037 1539324319
Output for 7.0.20
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 2118679119 115612491
Output for 7.0.19
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1906595058 572500771
Output for 7.0.18
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 628098223 1681077983
Output for 7.0.17
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 681034314 1709986300
Output for 7.0.16
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 693030707 749702342
Output for 7.0.15
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 441413962 702997148
Output for 7.0.14
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 695028730 552214962
Output for 7.0.13
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 164794977 1237716004
Output for 7.0.12
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 725191281 1220625603
Output for 7.0.11
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1588121966 944469966
Output for 7.0.10
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 347712808 2017605221
Output for 7.0.9
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 2131459653 1646351142
Output for 7.0.8
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1752247008 757472527
Output for 7.0.7
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 647617065 1617706267
Output for 7.0.6
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1137039590 2125752590
Output for 7.0.5
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 14278024 2096380750
Output for 7.0.4
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1434334019 1732738026
Output for 7.0.3
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1380084125 73532947
Output for 7.0.2
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 58755220 1976620972
Output for 7.0.1
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1930578943 331919217
Output for 7.0.0
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 2027060059 332325307
Output for hhvm-3.21.0
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 54469547 1963926552
Output for hhvm-3.20.2
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 846770839 2083914082
Output for hhvm-3.18.4
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1956988834 267479586
Output for 5.6.30
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 489835189 294399471
Output for 5.6.29
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1341989486 473212510
Output for 5.6.28
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 835356806 990877164
Output for 5.6.27
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 37449538 510445005
Output for 5.6.26
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 2052284191 1847304696
Output for 5.6.25
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1595299775 907910009
Output for 5.6.24
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 160301990 1581450539
Output for 5.6.23
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1249038083 313793148
Output for 5.6.22
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 15260787 1081620251
Output for 5.6.21
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 78204056 687432265
Output for 5.6.20
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 2106091898 1633742958
Output for 5.6.19
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 365433596 600355650
Output for 5.6.18
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1911046064 779301919
Output for 5.6.17
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1753598194 190197803
Output for 5.6.16
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 913582536 994751801
Output for 5.6.15
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1484767800 458522468
Output for 5.6.14
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 249854832 1201354818
Output for 5.6.13
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 870709333 343451392
Output for 5.6.12
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 844992134 1419968703
Output for 5.6.11
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 595320210 913118929
Output for 5.6.10
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1363971078 1851299387
Output for 5.6.9
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 5749198 1606939500
Output for 5.6.8
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1362159290 655842809
Output for 5.6.7
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1536121659 1577230812
Output for 5.6.6
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 2068255410 1321173083
Output for 5.6.5
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 485987038 859778170
Output for 5.6.4
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 998514194 1905557969
Output for 5.6.3
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 435381507 941054791
Output for 5.6.2
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 776863722 812814090
Output for 5.6.1
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 2128480662 1258975499
Output for 5.6.0
Notice: Use of undefined constant MT_RAND_PHP - assumed 'MT_RAND_PHP' in /in/7ke9p on line 2 Warning: mt_srand() expects at most 1 parameter, 2 given in /in/7ke9p on line 2 1156327738 1368391912