3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [['11-01-2012', 1], ['01-01-2014', 2], ['01-01-2015', 3], ['09-02-2013', 4], ['01-01-2013', 5]]; function date_sort($a, $b) { return strtotime($a[0]) - strtotime($b[0]); } usort($arr, "date_sort"); print_r($arr);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0090.00616.63
8.3.50.0040.01219.98
8.3.40.0060.01218.96
8.3.30.0060.00919.34
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0180.00025.92
8.2.170.0040.01218.99
8.2.160.0110.00722.96
8.2.150.0090.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0080.00020.38
8.2.100.0120.00017.84
8.2.90.0050.00317.88
8.2.80.0060.00318.89
8.2.70.0000.00817.50
8.2.60.0090.00017.63
8.2.50.0040.00417.98
8.2.40.0090.00018.16
8.2.30.0070.00018.01
8.2.20.0040.00420.45
8.2.10.0030.00518.19
8.2.00.0080.00019.33
8.1.280.0140.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0060.00321.97
8.1.230.0040.00720.98
8.1.220.0040.00418.86
8.1.210.0080.00018.77
8.1.200.0090.00017.48
8.1.190.0100.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00517.62
8.1.160.0040.00419.01
8.1.150.0030.00518.77
8.1.140.0000.00717.63
8.1.130.0070.00018.80
8.1.120.0050.00317.59
8.1.110.0040.00417.57
8.1.100.0030.00617.61
8.1.90.0000.00817.53
8.1.80.0040.00417.59
8.1.70.0000.00717.66
8.1.60.0160.00817.62
8.1.50.0190.00417.54
8.1.40.0240.00017.55
8.1.30.0160.00817.61
8.1.20.0160.00317.75
8.1.10.0200.00317.66
8.1.00.0210.00317.68
8.0.300.0060.00318.77
8.0.290.0060.00316.88
8.0.280.0030.00318.46
8.0.270.0030.00516.96
8.0.260.0040.00418.50
8.0.250.0000.00717.13
8.0.240.0070.00017.13
8.0.230.0030.00317.06
8.0.220.0000.00716.93
8.0.210.0000.00717.02
8.0.200.0030.00316.96
8.0.190.0190.00016.90
8.0.180.0150.00516.98
8.0.170.0160.00317.03
8.0.160.0150.00316.87
8.0.150.0120.00616.87
8.0.140.0100.00816.98
8.0.130.0190.00017.04
8.0.120.0110.00816.82
8.0.110.0190.00017.02
8.0.100.0130.00817.07
8.0.90.0160.00316.97
8.0.80.0060.01216.98
8.0.70.0160.00316.79
8.0.60.0150.00416.99
8.0.50.0150.00416.80
8.0.30.0100.01017.02
8.0.20.0160.00317.09
8.0.10.0190.00016.95
7.4.330.0000.00515.55
7.4.320.0000.00616.73
7.4.300.0060.00016.64
7.4.290.0030.00316.40
7.4.280.0220.00016.66
7.4.270.0160.00316.64
7.4.260.0180.00316.64
7.4.250.0180.00316.63
7.4.240.0110.00416.65
7.4.230.0090.00316.68
7.4.220.0130.00316.56
7.4.210.0150.00016.60
7.4.200.0130.00316.62
7.4.190.0090.00216.74
7.4.180.0030.00616.67
7.4.160.0150.00316.51
7.4.150.0170.00016.52
7.4.140.0160.00316.43
7.4.130.0150.00316.54
7.4.120.0090.00916.51
7.4.110.0090.00516.54
7.4.100.0140.00316.60
7.4.90.0100.01016.39
7.4.80.0140.00516.47
7.4.70.0140.00516.54
7.4.60.0190.00016.55
7.4.50.0100.00616.39
7.4.40.0170.00216.40
7.4.30.0110.00716.30
7.4.20.0150.00316.51
7.4.10.0180.00016.52
7.4.00.0150.00216.52
7.1.330.0150.00017.43

preferences:
57.66 ms | 401 KiB | 5 Q