3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function reverseOrder($arr1) { if (is_array($arr1)) { return array_reverse($arr1); } return false; } $reversedArray = reverseOrder(array(1,4,2,5,19,11,28)); echo(implode(', ', $reversedArray)); ?>
Output for 5.3.23 - 7.2.6
28, 11, 19, 5, 2, 4, 1