3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php array_map('rand', array(1, 2));
based on Zpa19
Output for 4.3.0 - 7.2.0
Warning: rand() expects exactly 2 parameters, 1 given in /in/mkOT3 on line 3 Warning: rand() expects exactly 2 parameters, 1 given in /in/mkOT3 on line 3