3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['11/01/2012', '03/16/2022', '12/26/2021', '01/01/2014', '09/02/2013']; usort($arr, function ($a, $b) { return strtotime($a) - strtotime($b); }); print_r($arr);

preferences:
59.84 ms | 406 KiB | 5 Q