3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ["a", "b", "c"]; var_dump(array_rand($a));
Output for 7.3.0rc3
int(2)