3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function maximum($list,$current) { if(empty($list)) return $current; $test = array_pop($list); return maximum($list, $current < $test ? $test : $current); } $list = array(2,1,4,2,6,77,2,1,3,44); echo maximum($list, 0);
based on rQar3
Output for 4.3.0 - 7.2.0
77