3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array (array('name'=> "harold", 'age'=> 24), array('name'=> "sonia", 'age'=> 25), array('name'=> "isaiah", 'age'=> 5), array('name'=> "alex", 'age'=> 23), array('name'=> "manuel", 'age'=> 26), array('name'=> "morgan", 'age'=> 12), array('name'=> "sheral", 'age'=> 21), ); $j = 1; $min_result = array(); for($i=0; $i<count($test); $i++){ if($test[$i]['age'] < $test[$j]['age']){ $min_result = $test[$i]; j++ } else{ $min_result = $test[$j]; $i++ } } var_dump($min_result) ?>
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected '++' (T_INC) in /in/j9TFu on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_INC in /in/j9TFu on line 18
Process exited with code 255.