3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(array(141,151,161), 2, 3, array(101, 202, array(303,404))); function MaxArray($arr) { $max = ~PHP_INT_MAX; foreach($arr as $val)) { if(is_array($val) { $max = MaxArray($val); } if($val > $max) { $max = $val; } } return $max; } print MaxArray($arr);
Output for 5.3.0 - 5.4.14
Parse error: syntax error, unexpected ')' in /in/Jn26t on line 5
Process exited with code 255.