3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $items = array(); echo gettype(array_rand($items));
Output for 7.1.0
Warning: array_rand(): Array is empty in /in/XJPbJ on line 4 NULL
Output for 4.3.0 - 7.0.14
NULL