3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo rand('hello');
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: rand() expects exactly 2 parameters, 1 given in /in/JvTDm on line 2
Output for hhvm-3.10.0 - 3.12.0
Warning: rand() expects parameter 1 to be integer, string given in /in/JvTDm on line 2
Output for 4.3.0 - 5.2.2
<br /> <b>Warning</b>: rand() expects exactly 2 parameters, 1 given in <b>/in/JvTDm</b> on line <b>2</b><br />