3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array= array('1','2','3','4','5','6'); echo rand($array);
Output for 4.3.0 - 7.1.0
Warning: rand() expects exactly 2 parameters, 1 given in /in/rfhiS on line 3