3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.24, 5.4.0 - 5.4.14
Parse error: syntax error, unexpected ')' in /in/Jn26t on line 5
Process exited with code 255.

preferences:
180.97 ms | 1395 KiB | 47 Q