3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i++; $i < 100) { $arr[] = rand(1,100); } rsort($arr); print_r($arr);
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: rsort() expects parameter 1 to be array, null given in /in/IYRkg on line 7
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: rsort expects array(s) or collection(s) in /in/IYRkg on line 7