3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ 1 => [ 'Date' => 2015-11-04 ], 2 => [ 'Date' => 2015-11-05 ] ]; usort($arr,'mySortDate'); function mySortDate($a,$b) { var_dump($a); }
Output for 7.0.0 - 7.2.0
array(1) { ["Date"]=> int(2000) }
Output for 5.4.12 - 5.6.28
array(1) { ["Date"]=> int(1999) }
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Ki5Xf on line 2
Process exited with code 255.