3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sort_dates = function($a, $b) { $a = strtotime($a['birthday']); $b = strtotime($b['birthday']); if ($a == $b) { return 0; } return ($a < $b) ? -1 : 1; } usort($upcoming, $sort_dates);
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'usort' (T_STRING) in /in/KCBIg on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING in /in/KCBIg on line 13
Process exited with code 255.