3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(array("data" => "abcd", "edit" => "1", "day" => "05", "month" => "04", "year" => "2013"), array("data" => "efgh", "edit" => "2", "day" => "07", "month" => "03", "year" => "2013")); function cmp($a, $b) { $date1 = strtotime($a['year'] . "-" . $a['month'] . "-" . $a['day']); $date2 = strtotime($b['year'] . "-" . $b['month'] . "-" . $b['day']); return $date1 - $date2; } usort($array, "cmp"); print_r($array);

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.40.0040.01118.65
8.3.30.0040.01119.04
8.3.20.0040.00420.16
8.3.10.0000.00722.10
8.3.00.0030.00522.57
8.2.170.0120.00622.96
8.2.160.0070.00721.00
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0080.00017.88
8.2.110.0090.00022.25
8.2.100.0100.00319.64
8.2.90.0000.00819.35
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0050.00318.05
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00718.15
8.2.20.0040.00417.84
8.2.10.0070.00017.81
8.2.00.0080.00017.94
8.1.270.0060.00322.14
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0040.00423.90
8.1.230.0080.00319.16
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0050.00517.61
8.1.190.0030.00617.64
8.1.180.0080.00018.89
8.1.170.0040.00418.53
8.1.160.0040.00422.02
8.1.150.0080.00018.71
8.1.140.0040.00417.58
8.1.130.0070.00017.60
8.1.120.0000.00717.70
8.1.110.0050.00317.65
8.1.100.0070.00017.64
8.1.90.0040.00417.66
8.1.80.0070.00017.50
8.1.70.0000.00717.58
8.1.60.0050.00517.60
8.1.50.0030.00617.61
8.1.40.0020.00517.64
8.1.30.0000.00817.79
8.1.20.0040.00417.64
8.1.10.0070.00017.73
8.1.00.0000.00917.67
8.0.300.0050.00218.77
8.0.290.0000.00717.05
8.0.280.0000.00718.52
8.0.270.0070.00017.25
8.0.260.0030.00317.11
8.0.250.0000.00717.18
8.0.240.0000.00717.08
8.0.230.0070.00017.20
8.0.220.0070.00017.00
8.0.210.0070.00017.11
8.0.200.0040.00417.02
8.0.190.0070.00017.06
8.0.180.0070.00017.11
8.0.170.0040.00417.05
8.0.160.0070.00017.05
8.0.150.0000.00817.10
8.0.140.0000.00817.11
8.0.130.0000.00513.52
8.0.120.0000.00816.96
8.0.110.0000.00717.05
8.0.100.0040.00317.07
8.0.90.0000.00716.99
8.0.80.0040.01617.06
8.0.70.0000.00717.00
8.0.60.0030.00617.16
8.0.50.0040.00417.00
8.0.30.0120.01017.23
8.0.20.0080.01017.40
8.0.10.0040.00416.96
8.0.00.0100.00817.07
7.4.330.0030.00315.00
7.4.320.0070.00016.66
7.4.300.0030.00316.56
7.4.290.0000.00716.67
7.4.280.0030.00316.77
7.4.270.0030.00316.79
7.4.260.0030.00316.56
7.4.250.0000.00816.68
7.4.240.0040.00316.74
7.4.230.0000.00716.66
7.4.220.0100.01016.62
7.4.210.0070.00816.77
7.4.200.0080.00016.77
7.4.190.0000.00716.76
7.4.160.0120.00316.66
7.4.150.0080.00817.40
7.4.140.0070.01217.86
7.4.130.0070.01016.73
7.4.120.0110.01016.58
7.4.110.0130.00716.79
7.4.100.0160.00816.57
7.4.90.0070.01116.62
7.4.80.0090.01619.39
7.4.70.0060.01016.77
7.4.60.0120.00616.60
7.4.50.0030.00616.85
7.4.40.0070.01122.77
7.4.30.0100.00616.74
7.4.00.0110.00714.96
7.3.330.0000.00513.27
7.3.320.0000.00513.35
7.3.310.0030.00316.31
7.3.300.0030.00316.51
7.3.290.0070.00716.43
7.3.280.0060.01216.38
7.3.270.0150.00317.40
7.3.260.0140.00316.56
7.3.250.0090.00916.58
7.3.240.0120.00616.70
7.3.230.0120.00816.64
7.3.210.0130.00316.66
7.3.200.0060.01516.50
7.3.190.0100.00716.57
7.3.180.0100.00616.57
7.3.170.0060.00916.52
7.3.160.0090.00616.68
7.3.120.0060.00914.93
7.3.110.0110.00714.90
7.3.100.0100.00315.00
7.3.90.0060.00615.01
7.3.80.0140.00315.04
7.3.70.0000.00914.88
7.3.60.0060.00914.91
7.3.50.0000.01814.81
7.3.40.0060.00615.09
7.3.30.0060.00614.62
7.3.20.0100.00316.96
7.3.10.0070.00717.05
7.3.00.0070.01016.80
7.2.330.0110.01116.49
7.2.320.0080.00916.98
7.2.310.0110.01517.02
7.2.300.0110.00616.79
7.2.290.0090.00616.43
7.2.250.0080.01115.05
7.2.240.0060.01515.40
7.2.230.0040.01415.36
7.2.220.0070.00315.07
7.2.210.0030.00715.05
7.2.200.0050.00515.11
7.2.190.0100.01014.95
7.2.180.0080.00815.24
7.2.170.0080.00415.24
7.2.00.0070.00719.63
7.1.330.0080.00416.07
7.1.320.0070.00415.93
7.1.310.0090.00616.12
7.1.300.0060.00915.73
7.1.290.0040.01116.10
7.1.280.0030.01015.82
7.1.270.0030.01016.01
7.1.260.0040.00716.11
7.1.100.0070.00718.14
7.1.70.0470.00617.65
7.1.60.0410.01317.65
7.1.50.0640.00417.65
7.1.40.0000.01317.65
7.1.30.0030.00917.65
7.1.20.0050.00717.65
7.1.10.0120.00017.65
7.1.00.0050.00517.65
7.0.200.0520.00617.65
7.0.190.0070.00317.65
7.0.180.0000.01017.65
7.0.170.0100.00317.65
7.0.160.0000.00917.65
7.0.150.0090.00317.65
7.0.140.0090.00217.65
7.0.130.0060.00917.65
7.0.120.0060.00617.65
7.0.110.0100.00617.65
7.0.100.0040.00817.65
7.0.90.0040.00817.65
7.0.80.0070.00717.65
7.0.70.0030.00717.65
7.0.60.0030.00917.65
7.0.50.0030.01117.65
7.0.40.0000.01117.65
7.0.30.0050.00517.65
7.0.20.0000.01117.65
7.0.10.0050.00717.65
7.0.00.0050.00517.65
5.6.300.0060.04120.93
5.6.290.0000.05820.58
5.6.280.0040.04520.89
5.6.270.0070.04321.08
5.6.260.0070.04421.07
5.6.250.0070.04620.98
5.6.240.0100.04521.04
5.6.230.0060.04520.98
5.6.220.0030.04720.93
5.6.210.0030.05520.97
5.6.200.0000.05121.04
5.6.190.0120.04920.80
5.6.180.0190.08420.80
5.6.170.0040.05220.81
5.6.160.0070.04121.00
5.6.150.0100.03920.88
5.6.140.0040.04320.77
5.6.130.0090.04921.01
5.6.120.0130.03820.71
5.6.110.0150.03620.82
5.6.100.0110.04020.73
5.6.90.0060.04220.92
5.6.80.0060.03820.23
5.6.70.0030.04420.42
5.6.60.0000.05120.32
5.6.50.0060.04220.23
5.6.40.0070.04020.15
5.6.30.0000.05820.33
5.6.20.0000.04820.36
5.6.10.0080.03820.41
5.6.00.0060.04820.18
5.5.380.0060.03917.68
5.5.370.0100.03417.65
5.5.360.0060.04117.65
5.5.350.0030.04417.65
5.5.340.0100.04117.75
5.5.330.0190.03118.06
5.5.320.0040.04418.06
5.5.310.0070.05718.09
5.5.300.0100.04018.06
5.5.290.0120.03718.04
5.5.280.0210.04218.12
5.5.270.0100.04118.12
5.5.260.0040.04618.00
5.5.250.0060.03917.65
5.5.240.0060.04117.65
5.5.230.0060.04217.65
5.5.220.0000.04817.65
5.5.210.0030.04017.65
5.5.200.0090.03817.65
5.5.190.0030.04417.65
5.5.180.0100.03817.65
5.5.160.0070.04017.65
5.5.150.0160.02917.65
5.5.140.0100.03717.65
5.5.130.0210.04217.65
5.5.120.0130.03217.65
5.5.110.0000.04517.65
5.5.100.0000.04817.65
5.5.90.0130.03217.65
5.5.80.0030.04417.65
5.5.70.0070.04017.65
5.5.60.0070.03817.65
5.5.50.0040.04217.65
5.5.40.0030.04117.65
5.5.30.0040.04217.65
5.5.20.0000.04217.65
5.5.10.0030.03817.65
5.5.00.0100.03717.65
5.4.450.0070.04319.53
5.4.440.0120.03719.30
5.4.430.0030.04119.38
5.4.420.0070.03719.41
5.4.410.0060.03719.14
5.4.400.0000.05218.98
5.4.390.0060.03919.21
5.4.380.0000.04719.08
5.4.370.0040.04419.15
5.4.360.0070.03519.06
5.4.350.0040.04619.06
5.4.340.0100.03618.92
5.4.320.0070.04119.14
5.4.310.0000.04518.90
5.4.300.0000.04618.98
5.4.290.0210.05218.98
5.4.280.0040.04119.23
5.4.270.0060.03918.94
5.4.260.0100.03518.98
5.4.250.0030.04818.95
5.4.240.0100.03518.89
5.4.230.0000.04218.88
5.4.220.0130.03219.08
5.4.210.0200.04919.07
5.4.200.0100.03318.94
5.4.190.0130.03219.06
5.4.180.0100.03719.19
5.4.170.0060.04218.96
5.4.160.0100.03718.87
5.4.150.0070.03718.96
5.4.140.0160.02817.65
5.4.130.0030.04717.65
5.4.120.0030.03617.65
5.4.110.0030.03917.65
5.4.100.0070.03917.65
5.4.90.0030.04117.65
5.4.80.0070.03217.65
5.4.70.0040.03617.65
5.4.60.0040.03617.65
5.4.50.0000.04417.65
5.4.40.0070.03817.65
5.4.30.0030.03917.65
5.4.20.0070.03617.65
5.4.10.0000.04017.65
5.4.00.0040.03517.65
5.3.290.0030.04017.65
5.3.280.0000.04117.65
5.3.270.0030.04217.65
5.3.260.0060.03817.65
5.3.250.0070.03617.65
5.3.240.0030.03617.65
5.3.230.0070.03917.65
5.3.220.0030.03817.65
5.3.210.0070.03817.65
5.3.200.0100.03917.65
5.3.190.0100.03617.65
5.3.180.0070.03417.65
5.3.170.0140.02817.65
5.3.160.0040.03917.65
5.3.150.0100.03517.65
5.3.140.0000.04517.65
5.3.130.0030.04317.65
5.3.120.0060.03517.65
5.3.110.0110.05417.65
5.3.100.0140.05417.65
5.3.90.0100.03517.65
5.3.80.0030.03817.65
5.3.70.0030.05217.65
5.3.60.0130.04817.65
5.3.50.0040.03917.65
5.3.40.0030.04017.65
5.3.30.0090.03417.65
5.3.20.0100.03117.65
5.3.10.0030.04117.65
5.3.00.0060.04817.65

preferences:
46.08 ms | 400 KiB | 5 Q