3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo rand(10);
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: rand() expects exactly 2 parameters, 1 given in /in/BXJfI on line 1
Output for hhvm-3.12.0
1378799031
Output for hhvm-3.10.0
1108542803
Output for 4.3.0 - 5.2.2
<br /> <b>Warning</b>: rand() expects exactly 2 parameters, 1 given in <b>/in/BXJfI</b> on line <b>1</b><br />