3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo mt_rand(5, 7);
based on BemPt
Output for 7.1.0 - 7.1.1, 7.1.8, 7.1.15, 7.1.17, 7.1.21, 7.2.1 - 7.2.4, 7.2.6 - 7.2.7, 7.2.9, 7.3.0rc3
5
Output for 5.6.38 - 7.0.28, 7.1.3 - 7.1.5, 7.1.7, 7.1.10 - 7.1.12, 7.1.14, 7.1.16, 7.1.20, 7.1.23 - 7.2.0, 7.2.8, 7.2.10, 7.3.0alpha4 - 7.3.0beta2, 7.3.0rc1 - 7.3.0rc2
7
Output for 7.1.2, 7.1.6, 7.1.9, 7.1.13, 7.1.18 - 7.1.19, 7.1.22, 7.2.5, 7.2.11 - 7.3.0alpha3, 7.3.0beta3
6