3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = array(10, 20, 40); rsort($subject); print_r($subject);
Output for 4.3.0 - 7.1.0
Array ( [0] => 40 [1] => 20 [2] => 10 )