3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1385874000); $array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1388293200); $array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1357189200); usort($array, function(intval($a), intval($b) { return $a['stamp'] - $b['stamp']; }); print_r($array) ; ?>
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '(', expecting '&' or variable (T_VARIABLE) in /in/U0tt3 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '(', expecting '&' or T_VARIABLE in /in/U0tt3 on line 6
Process exited with code 255.