3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mt_srand (microtime(true)); $six_digit_random_number = mt_rand(100000, 999999); echo $six_digit_random_number;
Output for 7.1.0
579378
Output for 5.6.28, 7.0.14
667576
Output for 7.0.6
486238
Output for 7.0.5
321592
Output for 7.0.4
208534
Output for 7.0.3
768830
Output for 7.0.2
423073
Output for 7.0.1
762388
Output for 7.0.0
464756
Output for 5.6.21
817933
Output for 5.6.20
493413
Output for 5.6.19
500798
Output for 5.6.18
668100
Output for 5.6.17
189002
Output for 5.6.16
233409
Output for 5.6.15
559171
Output for 5.6.14
454220
Output for 5.6.13
277878
Output for 5.6.12
653194
Output for 5.6.11
257396
Output for 5.6.10
811857
Output for 5.6.9
517547
Output for 5.6.8
140925
Output for 5.5.35
610364
Output for 5.5.34
764403
Output for 5.5.33
943968
Output for 5.5.32
428777
Output for 5.5.31
841542
Output for 5.5.30
694059
Output for 5.5.29
330453
Output for 5.5.28
310759
Output for 5.5.27
612085
Output for 5.5.26
190508
Output for 5.5.25
603024
Output for 5.5.24
271749
Output for 5.4.45
972828
Output for 5.4.44
866303
Output for 5.4.43
324629
Output for 5.4.42
624224
Output for 5.4.41
909569
Output for 5.4.40
488784
Output for 5.4.39
144049
Output for 5.4.38
606873
Output for 5.4.37
422601
Output for 5.4.36
108345
Output for 5.4.35
644708
Output for 5.4.34
974016
Output for 5.3.29, 5.4.32
550866
Output for 5.4.31
268007
Output for 5.4.30
156826
Output for 5.4.29
412820
Output for 5.4.28
839357
Output for 5.4.27
353594
Output for 5.4.26
731841
Output for 5.4.25
389496
Output for 5.4.24
123213
Output for 5.3.28, 5.4.23
174054
Output for 5.4.21 - 5.4.22
285275
Output for 5.4.20
375869
Output for 5.4.19
214170
Output for 5.4.18
226911
Output for 5.3.27, 5.4.17
661835
Output for 5.4.15 - 5.4.16
796190
Output for 5.4.13 - 5.4.14
220547
Output for 5.3.23, 5.4.12
141518
Output for 5.3.20 - 5.3.22, 5.4.11
139395
Output for 5.4.9 - 5.4.10
399608
Output for 5.4.8
269233
Output for 5.3.17, 5.4.7
863587
Output for 5.3.16, 5.4.6
380802
Output for 5.3.14, 5.4.5
828388
Output for 5.4.3 - 5.4.4
635307
Output for 5.3.11, 5.4.2
648325
Output for 5.4.0 - 5.4.1
704398
Output for 5.3.26
879155
Output for 5.3.24 - 5.3.25
786975
Output for 5.3.18 - 5.3.19
734118
Output for 5.3.15
422816
Output for 5.3.12 - 5.3.13
449141
Output for 5.3.9 - 5.3.10
979665
Output for 5.3.8
384380
Output for 5.3.6 - 5.3.7
780400
Output for 5.2.17, 5.3.5
365836
Output for 5.2.16, 5.3.4
520010
Output for 5.2.15, 5.3.3
151229
Output for 5.2.14, 5.3.2
532399
Output for 5.2.11, 5.3.1
638655
Output for 5.2.9 - 5.2.10, 5.3.0
895850
Output for 5.2.12 - 5.2.13
444397
Output for 5.2.7 - 5.2.8
976432
Output for 5.2.6
619213
Output for 5.2.4 - 5.2.5
535149
Output for 5.2.2 - 5.2.3
237022
Output for 5.2.1
506986
Output for 5.1.6 - 5.2.0
290014
Output for 5.1.2 - 5.1.5
880043
Output for 5.0.4 - 5.1.1
762234
Output for 5.0.0 - 5.0.3
922107
Output for 4.4.9
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 313529
Output for 4.4.8
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 396905
Output for 4.4.7
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 590388
Output for 4.4.6
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 705326
Output for 4.4.5
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 187380
Output for 4.4.4
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 777822
Output for 4.4.3
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 433286
Output for 4.4.2
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 541871
Output for 4.4.1
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 757353
Output for 4.4.0
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 619907
Output for 4.3.11
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 399559
Output for 4.3.10
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 633998
Output for 4.3.9
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 712136
Output for 4.3.8
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 577178
Output for 4.3.7
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 993504
Output for 4.3.6
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 656702
Output for 4.3.5
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 412461
Output for 4.3.4
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 620512
Output for 4.3.3
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 117109
Output for 4.3.2
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 218201
Output for 4.3.1
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 395138
Output for 4.3.0
Warning: mt_srand() expects parameter 1 to be long, string given in /in/dVQuu on line 2 301319