3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function mt_rand_str ($l, $c = '1234567890') { for ($s = '', $cl = strlen($c)-1, $i = 0; $i < $l; $s .= $c[mt_rand(0, $cl)], ++$i); return $s; } echo mt_rand_str(10, '0123456789'); ?>
Output for 7.1.0
1840305781
Output for 7.0.14
9932521821
Output for 7.0.10
8900710153
Output for 7.0.9
8951922208
Output for 7.0.8
0154287382
Output for 7.0.7
3662405153
Output for 7.0.6
7167382374
Output for 7.0.5
0023799710
Output for 7.0.4
9845458416
Output for 7.0.3
4005546121
Output for 7.0.2
4071002375
Output for 7.0.1
8350430784
Output for 7.0.0
2860052968
Output for hhvm-3.12.0
0694613647
Output for hhvm-3.10.0
7504007525
Output for 5.6.28
5612319948
Output for 5.6.25
9827991545
Output for 5.6.24
3367492853
Output for 5.6.23
7057171113
Output for 5.6.22
2160032910
Output for 5.6.21
3154799277
Output for 5.6.20
3536870802
Output for 5.6.19
7801086654
Output for 5.6.18
9758031227
Output for 5.6.17
7547380874
Output for 5.6.16
4166548612
Output for 5.6.15
1510462571
Output for 5.6.14
4254482792
Output for 5.6.13
5953018624
Output for 5.6.12
5190118895
Output for 5.6.11
3256682555
Output for 5.6.10
1883101520
Output for 5.6.9
2462843962
Output for 5.6.8
7746927088
Output for 5.6.7
2907613197
Output for 5.6.6
8850131007
Output for 5.6.5
3848183305
Output for 5.6.4
0023926898
Output for 5.6.3
0234888995
Output for 5.6.2
3585633662
Output for 5.6.1
0842328416
Output for 5.6.0
3656211787
Output for 5.5.38
5853675038
Output for 5.5.37
2001579907
Output for 5.5.36
2113912931
Output for 5.5.35
4904275233
Output for 5.5.34
2729048075
Output for 5.5.33
0094787988
Output for 5.5.32
6399016031
Output for 5.5.31
3706479884
Output for 5.5.30
5979611718
Output for 5.5.29
8253687802
Output for 5.5.28
9500706502
Output for 5.5.27
3137052690
Output for 5.5.26
1278853441
Output for 5.5.25
5190713581
Output for 5.5.24
8316576503
Output for 5.5.23
0170608865
Output for 5.5.22
4898214550
Output for 5.5.21
0991589672
Output for 5.5.20
5525367489
Output for 5.5.19
5293474327
Output for 5.5.18
7089497747
Output for 5.5.16
9951698455
Output for 5.5.15
0245255193
Output for 5.5.14
6162623351
Output for 5.5.13
7850279192
Output for 5.5.12
1119806429
Output for 5.5.11
8226663962
Output for 5.5.10
2411507349
Output for 5.5.9
5821730067
Output for 5.5.8
3723167592
Output for 5.5.7
4821241988
Output for 5.5.6
5940126170
Output for 5.5.5
6924752948
Output for 5.5.4
2266547805
Output for 5.5.3
8992756128
Output for 5.5.2
0489812368
Output for 5.5.1
6538582307
Output for 5.5.0
6546192524
Output for 5.4.45
7358948396
Output for 5.4.44
7891708418
Output for 5.4.43
5602712648
Output for 5.4.42
0125316109
Output for 5.4.41
1142107504
Output for 5.4.40
4904045782
Output for 5.4.39
3849358336
Output for 5.4.38
3033946004
Output for 5.4.37
8967086508
Output for 5.4.36
6381699595
Output for 5.4.35
2049827916
Output for 5.4.34
5277370467
Output for 5.4.32
7778901713
Output for 5.4.31
6975497156
Output for 5.4.30
5579858643
Output for 5.4.29
4413737108
Output for 5.4.28
7405086085
Output for 5.4.27
7756129436
Output for 5.4.26
4057415356
Output for 5.4.25
5335204018
Output for 5.4.24
1211810846
Output for 5.4.23
5218384815
Output for 5.4.22
4778698261
Output for 5.4.21
1924050049
Output for 5.4.20
3871622457
Output for 5.4.19
0212406947
Output for 5.4.18
1154010514
Output for 5.4.17
4509333381
Output for 5.4.16
2830837363
Output for 5.4.15
3677774523
Output for 5.4.14
4772799639
Output for 5.4.13
7134665822
Output for 5.4.12
6313529981
Output for 5.4.11
9651507734
Output for 5.4.10
2160621305
Output for 5.4.9
8514153341
Output for 5.4.8
7227274464
Output for 5.4.7
7695109692
Output for 5.4.6
7316323683
Output for 5.4.5
0258204745
Output for 5.4.4
6338847974
Output for 5.4.3
7883735025
Output for 5.4.2
5100184079
Output for 5.4.1
9012299684
Output for 5.4.0
3315715962
Output for 5.3.29
2974260198
Output for 5.3.28
2894170725
Output for 5.3.27
0066503951
Output for 5.3.26
6420159626
Output for 5.3.25
0363874275
Output for 5.3.24
9033149378
Output for 5.3.23
2647090714
Output for 5.3.22
7192782225
Output for 5.3.21
6417120437
Output for 5.3.20
7047046710
Output for 5.3.19
5787874768
Output for 5.3.18
0565406966
Output for 5.3.17
8815665750
Output for 5.3.16
7412977121
Output for 5.3.15
3232712208
Output for 5.3.14
8355393625
Output for 5.3.13
0025585962
Output for 5.3.12
3304834392
Output for 5.3.11
0528094014
Output for 5.3.10
3163000032
Output for 5.3.9
7193662558
Output for 5.3.8
2902704060
Output for 5.3.7
0166701697
Output for 5.3.6
5933622149
Output for 5.3.5
0573971384
Output for 5.3.4
2701789926
Output for 5.3.3
4615926038
Output for 5.3.2
9618372185
Output for 5.3.1
3911404664
Output for 5.3.0
4885750150
Output for 5.2.17
4678459617
Output for 5.2.16
1416707524
Output for 5.2.15
7239761053
Output for 5.2.14
1512686861
Output for 5.2.13
5827060794
Output for 5.2.12
7799682628
Output for 5.2.11
7935606505
Output for 5.2.10
4611054971
Output for 5.2.9
9702364224
Output for 5.2.8
9908293484
Output for 5.2.7
6482457618
Output for 5.2.6
9110878685
Output for 5.2.5
1239870945
Output for 5.2.4
6376789159
Output for 5.2.3
5381189278
Output for 5.2.2
3405834869
Output for 5.2.1
0833890174
Output for 5.2.0
2832190615
Output for 5.1.6
3499622164
Output for 5.1.5
9254669191
Output for 5.1.4
8315204000
Output for 5.1.3
0300414869
Output for 5.1.2
4366480643
Output for 5.1.1
6646682735
Output for 5.1.0
3166286375
Output for 5.0.5
6089762099
Output for 5.0.4
1903679056
Output for 5.0.3
3654411302
Output for 5.0.2
8087665383
Output for 5.0.1
7962285393
Output for 5.0.0
0917868968
Output for 4.4.9
7681319739
Output for 4.4.8
6927397374
Output for 4.4.7
4848051243
Output for 4.4.6
3685433839
Output for 4.4.5
5403560813
Output for 4.4.4
7169919275
Output for 4.4.3
0754463580
Output for 4.4.2
9618344887
Output for 4.4.1
6693644320
Output for 4.4.0
7416876068
Output for 4.3.11
5025858236
Output for 4.3.10
8551809558
Output for 4.3.9
5513482246
Output for 4.3.8
8242586693
Output for 4.3.7
4779793711
Output for 4.3.6
6715488084
Output for 4.3.5
8392800912
Output for 4.3.4
4050657280
Output for 4.3.3
4284417913
Output for 4.3.2
9947051464
Output for 4.3.1
1644166170
Output for 4.3.0
9295927526