3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = 2; echo (int) rand() / $n;
Output for 7.1.0
381440919
Output for 7.0.14
617855936.5
Output for 7.0.6
621249082
Output for 7.0.5
894550150.5
Output for 7.0.4
253463039
Output for 7.0.3
640315265.5
Output for 7.0.2
730662661
Output for 7.0.1
105021769
Output for 7.0.0
281465075.5
Output for hhvm-3.12.0
351034272.5
Output for hhvm-3.10.0
676694686.5
Output for 5.6.28
334623120.5
Output for 5.6.21
564199826.5
Output for 5.6.20
727310669.5
Output for 5.6.19
922548012
Output for 5.6.18
1066670237.5
Output for 5.6.17
1032393397
Output for 5.6.16
850068191.5
Output for 5.6.15
858751076
Output for 5.6.14
1040417327
Output for 5.6.13
1049889537
Output for 5.6.12
784333302.5
Output for 5.6.11
375230456.5
Output for 5.6.10
190310393.5
Output for 5.6.9
135347365
Output for 5.6.8
308359930
Output for 5.6.7
54703368.5
Output for 5.5.35
690520522.5
Output for 5.5.34
412060842
Output for 5.5.33
925396467
Output for 5.5.32
479672631.5
Output for 5.5.31
932405943.5
Output for 5.5.30
948707856.5
Output for 5.5.29
476911422
Output for 5.5.28
246309183
Output for 5.5.27
292223294
Output for 5.5.26
97479560.5
Output for 5.5.25
300964083.5
Output for 5.5.24
676838929
Output for 5.4.45
295354748
Output for 5.4.44
415799743
Output for 5.4.43
729717793.5
Output for 5.4.42
587290756
Output for 5.4.41
395320489
Output for 5.4.40
919990572
Output for 5.4.39
920643509.5
Output for 5.4.38
7643942.5
Output for 5.4.37
1018158106
Output for 5.4.36
471148707.5
Output for 5.4.35
468709350.5
Output for 5.4.34
802701007
Output for 5.4.32
980658864
Output for 5.4.31
218516699
Output for 5.4.30
162423171
Output for 5.4.29
98057551
Output for 5.4.28
274951131
Output for 5.4.27
118870002.5
Output for 5.4.26
622381594
Output for 5.4.25
773235126
Output for 5.4.24
853425680.5
Output for 5.4.23
426133754
Output for 5.4.22
108302476.5
Output for 5.4.21
35526146.5
Output for 5.4.20
35033525
Output for 5.4.19
876965165
Output for 5.4.18
861778285
Output for 5.4.17
699231841
Output for 5.4.16
91833288
Output for 5.4.15
1060411382
Output for 5.4.14
300398927
Output for 5.4.13
35779351.5
Output for 5.4.12
975761477.5
Output for 5.4.11
372738741.5
Output for 5.4.10
766688160.5
Output for 5.4.9
650872070
Output for 5.4.8
1064295432
Output for 5.4.7
480088102
Output for 5.4.6
1053866945.5
Output for 5.4.5
191750944.5
Output for 5.4.4
727271508
Output for 5.4.3
910451048.5
Output for 5.4.2
183156888
Output for 5.4.1
1070804791.5
Output for 5.4.0
885393743.5
Output for 5.3.29
921917573.5
Output for 5.3.28
278632615
Output for 5.3.27
559891578
Output for 5.3.26
340743520.5
Output for 5.3.25
276012777
Output for 5.3.24
902740250.5
Output for 5.3.23
922065578
Output for 5.3.22
485650445.5
Output for 5.3.21
909560880.5
Output for 5.3.20
148941705.5
Output for 5.3.19
694165315.5
Output for 5.3.18
406901171
Output for 5.3.17
640008314.5
Output for 5.3.16
779989496.5
Output for 5.3.15
141050632
Output for 5.3.14
61491945
Output for 5.3.13
790435550
Output for 5.3.12
888671494.5
Output for 5.3.11
793773752.5
Output for 5.3.10
325776626.5
Output for 5.3.9
301702106
Output for 5.3.8
764695525
Output for 5.3.7
1038397063.5
Output for 5.3.6
1023301605
Output for 5.3.5
866327506
Output for 5.3.4
614937443.5
Output for 5.3.3
636899179.5
Output for 5.3.2
54619215.5
Output for 5.3.1
989409014.5
Output for 5.3.0
149953155
Output for 5.2.17
626192724.5
Output for 5.2.16
1048214857.5
Output for 5.2.15
809881997.5
Output for 5.2.14
817700646
Output for 5.2.13
180223859
Output for 5.2.12
971807979.5
Output for 5.2.11
1010695108.5
Output for 5.2.10
602177154.5
Output for 5.2.9
401613289.5
Output for 5.2.8
762125332.5
Output for 5.2.7
430696901.5
Output for 5.2.6
610215300
Output for 5.2.5
143725929.5
Output for 5.2.4
9226973
Output for 5.2.3
15137392.5
Output for 5.2.2
562391794
Output for 5.2.1
776675341.5
Output for 5.2.0
360150761
Output for 5.1.6
380079215.5
Output for 5.1.5
29069076
Output for 5.1.4
526200921.5
Output for 5.1.3
796268532
Output for 5.1.2
774909344.5
Output for 5.1.1
686611002
Output for 5.1.0
67062058
Output for 5.0.5
430210866
Output for 5.0.4
865071154.5
Output for 5.0.3
648304620
Output for 5.0.2
27863165
Output for 5.0.1
429866804
Output for 5.0.0
221058635.5
Output for 4.4.9
22297262
Output for 4.4.8
794705645.5
Output for 4.4.7
68572115.5
Output for 4.4.6
686267988
Output for 4.4.5
270322329
Output for 4.4.4
79900429.5
Output for 4.4.3
786468248
Output for 4.4.2
249269531
Output for 4.4.1
293748110
Output for 4.4.0
960056608.5
Output for 4.3.11
196034786
Output for 4.3.10
1045050750.5
Output for 4.3.9
25473738
Output for 4.3.8
185177337.5
Output for 4.3.7
936621799
Output for 4.3.6
1008922795.5
Output for 4.3.5
437317330
Output for 4.3.4
50880538
Output for 4.3.3
800338710.5
Output for 4.3.2
324604990.5
Output for 4.3.1
79440946
Output for 4.3.0
917035653.5