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);

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.140.0060.00316.61
8.3.130.0030.00518.38
8.3.120.0180.00718.67
8.3.110.0220.00617.66
8.3.100.0250.00718.43
8.3.90.0210.00820.70
8.3.80.0310.00618.53
8.3.70.0240.00818.61
8.3.60.0280.00719.42
8.3.50.0290.00720.45
8.3.40.0190.01120.67
8.3.30.0280.00620.38
8.3.20.0230.01122.05
8.3.10.0190.00822.31
8.3.00.0200.00622.20
8.2.250.0100.01018.46
8.2.240.0130.00316.66
8.2.230.0190.00617.41
8.2.220.0160.00621.71
8.2.210.0220.00722.32
8.2.200.0250.00718.67
8.2.190.0260.00618.57
8.2.180.0240.00821.34
8.2.170.0250.00921.13
8.2.160.0260.00821.19
8.2.150.0270.00622.00
8.2.140.0200.00721.94
8.2.130.0180.00822.56
8.2.120.0180.00921.81
8.2.110.0160.00921.44
8.2.100.0190.00820.40
8.2.90.0230.00620.15
8.2.80.0200.00820.17
8.2.70.0200.00723.92
8.2.60.0190.00523.98
8.2.50.0180.00624.13
8.2.40.0180.00524.54
8.2.30.0160.00523.83
8.2.20.0150.00623.95
8.2.10.0160.00723.55
8.2.00.0160.00623.24
8.1.300.0170.00717.05
8.1.290.0260.00721.16
8.1.280.0310.00421.08
8.1.270.0200.00722.32
8.1.260.0200.00723.01
8.1.250.0180.00823.12
8.1.240.0160.00720.46
8.1.230.0150.00720.28
8.1.220.0160.00720.08
8.1.210.0150.00720.54
8.1.200.0150.00728.10
8.1.190.0140.00824.48
8.1.180.0160.00624.21
8.1.170.0150.00624.32
8.1.160.0150.00523.76
8.1.150.0140.00624.29
8.1.140.0150.00623.36
8.1.130.0130.00622.50
8.1.120.0140.00522.59
8.1.110.0130.00622.23
8.1.100.0120.00622.01
8.1.90.0130.00521.81
8.1.80.0130.00421.19
8.1.70.0120.00521.51
8.1.60.0140.00521.49
8.1.50.0150.00521.45
8.1.40.0140.00521.48
8.1.30.0140.00421.57
8.1.20.0140.00621.58
8.1.10.0140.00621.44
8.1.00.0140.00621.39
8.0.300.0160.00719.57
8.0.290.0200.00524.09
8.0.280.0180.00523.44
8.0.270.0150.00623.04
8.0.260.0150.00622.23
8.0.250.0150.00422.08
8.0.240.0140.00521.61
8.0.230.0130.00621.52
8.0.220.0130.00521.46
8.0.210.0130.00621.15
8.0.200.0140.00521.01
8.0.190.0150.00421.03
8.0.180.0130.00521.00
8.0.170.0130.00520.96
8.0.160.0130.00521.00
8.0.150.0130.00520.95
8.0.140.0130.00620.96
8.0.130.0130.00520.99
8.0.120.0140.00520.96
8.0.110.0130.00521.02
8.0.100.0130.00520.97
8.0.90.0140.00520.94
8.0.80.0140.00520.97
8.0.70.0130.00420.96
8.0.60.0130.00421.00
8.0.50.0130.00520.95
8.0.30.0120.00520.99
8.0.20.0120.00521.04
8.0.10.0130.00521.05
7.4.330.0120.00420.36
7.4.320.0150.00421.29
7.4.300.0120.00520.64
7.4.290.0140.00420.64
7.4.280.0130.00620.60
7.4.270.0130.00520.58
7.4.260.0150.00420.43
7.4.250.0140.00420.61
7.4.240.0150.00420.65
7.4.230.0150.00620.61
7.4.220.0140.00420.63
7.4.210.0130.00520.68
7.4.200.0140.00420.58
7.4.190.0130.00520.66
7.4.180.0140.00420.49
7.4.160.0130.00420.65
7.4.150.0130.00520.62
7.4.140.0140.00420.58
7.4.130.0140.00520.56
7.4.120.0130.00520.54
7.4.110.0140.00522.82
7.4.100.0140.00520.63
7.4.90.0140.00520.57
7.4.80.0150.00420.52
7.4.70.0160.00420.56
7.4.60.0140.00422.87
7.4.50.0140.00520.46
7.4.40.0140.00620.45
7.4.30.0140.00520.49
7.4.20.0140.00520.49
7.4.10.0150.00520.49
7.4.00.0120.00520.57
7.3.330.0140.00716.05

preferences:
52.39 ms | 403 KiB | 5 Q