3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = [ 0 => [ 'val' => 3, 'param' => 2 ], 1 => [ 'val' => 3, 'param' => 10 ] ] maxValueOfArrayParam = max(array_map( function($a){ return $a['param'] }, $array ));
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected 'maxValueOfArrayParam' (T_STRING) in /in/fUWkp on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/fUWkp on line 2
Process exited with code 255.