3v4l.org

run code in 200+ 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($a, $b) { return $a['stamp'] - $b['stamp']; } print_r($array) ; ?>
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected 'print_r' (T_STRING) in /in/aVsQ5 on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/aVsQ5 on line 9
Process exited with code 255.