3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function MaxArray($arr) { foreach($arr as $key => $val) if ( is_array($val) ) $arr[$key] = MaxArray($val); return max($arr); } echo MaxArray(array('121','414'),'12','515',array('122',array('646','4241')));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
414