3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gatos = array( array( "id" => 1, "name" => "Titus", "fecha" => "2013-05-14 00:00:00", ), array( "id" => 2, "name" => "Gato", "fecha" => "2010-08-11 00:00:00", ), array( "id" => 3, "name" => "Pepito", "fecha" => "2011-02-28 00:00:00", ), array( "id" => 4, "name" => "Juancito", "fecha" => "2008-05-30 00:00:00", ), ); usort($gatos, function($gato1,$gato2){ return strcmp(date_create($gato1["fecha"])->format("md"),date_create($gato2["fecha"])->format("md")); }); var_dump($gatos);

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.0120.00616.75
8.3.50.0100.00722.12
8.3.40.0060.00918.85
8.3.30.0150.00619.17
8.3.20.0040.00420.15
8.3.10.0060.00923.57
8.3.00.0030.00717.50
8.2.180.0120.00318.41
8.2.170.0120.00322.96
8.2.160.0100.00320.34
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.29
8.2.110.0100.00020.38
8.2.100.0090.00317.97
8.2.90.0090.00019.25
8.2.80.0030.00618.15
8.2.70.0030.00717.88
8.2.60.0050.00318.16
8.2.50.0080.00018.07
8.2.40.0040.00420.00
8.2.30.0000.00818.23
8.2.20.0050.00217.87
8.2.10.0000.00818.16
8.2.00.0030.00617.86
8.1.280.0110.00725.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0120.00023.83
8.1.230.0100.00022.15
8.1.220.0000.00817.79
8.1.210.0040.00818.77
8.1.200.0000.00917.60
8.1.190.0000.00917.65
8.1.180.0040.00418.10
8.1.170.0000.00918.83
8.1.160.0040.00422.02
8.1.150.0040.00418.85
8.1.140.0070.00317.52
8.1.130.0030.00317.80
8.1.120.0000.00817.72
8.1.110.0040.00417.55
8.1.100.0040.00417.63
8.1.90.0000.00717.68
8.1.80.0070.00017.64
8.1.70.0020.00517.57
8.1.60.0000.00717.73
8.1.50.0040.00417.66
8.1.40.0000.00817.71
8.1.30.0040.00417.71
8.1.20.0030.00517.83
8.1.10.0000.00817.63
8.1.00.0000.00917.57
8.0.300.0000.00719.28
8.0.290.0060.00317.00
8.0.280.0030.00318.36
8.0.270.0000.00717.23
8.0.260.0000.00817.21
8.0.250.0000.00717.07
8.0.240.0030.00316.98
8.0.230.0040.00317.08
8.0.220.0000.00717.01
8.0.210.0000.00717.04
8.0.200.0000.00717.12
8.0.190.0070.00017.18
8.0.180.0050.00517.02
8.0.170.0040.00417.10
8.0.160.0050.00317.15
8.0.150.0040.00416.96
8.0.140.0040.00417.07
8.0.130.0050.00013.41
8.0.120.0000.00716.91
8.0.110.0020.00516.95
8.0.100.0070.00017.15
8.0.90.0070.00017.13
8.0.80.0090.00617.05
8.0.70.0000.00716.99
8.0.60.0000.00716.98
8.0.50.0000.00717.14
8.0.30.0110.00917.29
8.0.20.0090.01117.40
8.0.10.0040.00417.16
8.0.00.0100.00916.80
7.4.330.0000.00515.09
7.4.320.0000.00616.57
7.4.300.0000.00616.64
7.4.290.0030.00316.74
7.4.280.0000.00816.69
7.4.270.0000.00816.77
7.4.260.0030.00316.66
7.4.250.0000.00716.60
7.4.240.0020.00516.69
7.4.230.0050.00216.82
7.4.220.0160.00016.73
7.4.210.0050.01016.78
7.4.200.0070.00016.74
7.4.190.0030.00516.87
7.4.160.0060.01016.66
7.4.150.0170.00317.40
7.4.140.0140.00517.86
7.4.130.0100.00816.56
7.4.120.0100.01116.57
7.4.110.0070.01016.59
7.4.100.0160.00616.80
7.4.90.0090.00916.64
7.4.80.0190.00619.39
7.4.70.0040.01816.79
7.4.60.0100.01016.43
7.4.50.0120.00416.52
7.4.40.0130.00518.56
7.4.30.0070.01416.33
7.4.20.0060.01216.46
7.4.10.0080.01016.45
7.4.00.0100.00716.27
7.3.330.0050.00013.29
7.3.320.0000.00513.43
7.3.310.0000.00716.46
7.3.300.0000.00616.45
7.3.290.0120.00916.40
7.3.280.0090.00916.37
7.3.270.0140.00917.40
7.3.260.0130.01016.48
7.3.250.0080.01316.55
7.3.240.0070.01116.57
7.3.230.0200.00616.54
7.3.210.0090.01016.79
7.3.200.0100.00619.39
7.3.190.0070.01716.66
7.3.180.0140.00516.46
7.3.170.0120.01116.54
7.3.160.0060.01516.55
7.3.150.0110.00716.48
7.3.140.0100.01016.52
7.3.130.0040.01516.51
7.3.120.0090.00815.64
7.3.110.0070.01116.47
7.3.100.0100.00916.25
7.3.90.0100.00516.47
7.3.80.0040.01416.23
7.3.70.0110.00716.48
7.3.60.0150.00316.39
7.3.50.0090.00916.47
7.3.40.0060.01016.44
7.3.30.0090.00616.46
7.3.20.0110.00816.45
7.3.10.0090.00916.53
7.3.00.0170.00616.43
7.2.330.0120.00816.69
7.2.320.0150.00616.75
7.2.310.0110.00816.74
7.2.300.0050.01916.48
7.2.290.0100.00916.93
7.2.280.0160.00316.53
7.2.270.0070.01116.77
7.2.260.0070.01016.55
7.2.250.0090.01016.54
7.2.240.0060.01316.57
7.2.230.0100.01016.57
7.2.220.0110.00816.63
7.2.210.0100.00616.71
7.2.200.0090.00916.68
7.2.190.0100.00716.61
7.2.180.0090.00616.66
7.2.170.0040.01516.51
7.2.160.0160.00016.64
7.2.150.0120.00616.70
7.2.140.0110.00816.58
7.2.130.0080.01416.60
7.2.120.0100.01016.63
7.2.110.0100.01016.64
7.2.100.0090.00916.58
7.2.90.0260.00716.62
7.2.80.0130.00716.75
7.2.70.0070.01316.68
7.2.60.0100.01016.55
7.2.50.0100.01016.66
7.2.40.0120.00916.54
7.2.30.0210.01116.73
7.2.20.0150.00916.50
7.2.10.0070.01016.65
7.2.00.0180.00518.13
7.1.330.0130.00915.68
7.1.320.0100.01015.68
7.1.310.0250.00415.72
7.1.300.0070.01415.73
7.1.290.0200.00015.46
7.1.280.0140.00715.55
7.1.270.0160.00515.58
7.1.260.0070.01415.69
7.1.250.0200.00015.57
7.1.240.0160.00415.44
7.1.230.0110.00815.49
7.1.220.0090.01215.70
7.1.210.0110.01115.66
7.1.200.0100.00715.75
7.1.190.0230.00015.27
7.1.180.0110.01515.42
7.1.170.0080.01315.42
7.1.160.0170.00915.57
7.1.150.0060.01215.41
7.1.140.0140.00615.67
7.1.130.0140.00715.63
7.1.120.0160.00315.64
7.1.110.0110.01115.70
7.1.100.0080.00917.00
7.1.90.0090.01315.50
7.1.80.0130.01315.70
7.1.70.0120.00416.24
7.1.60.0130.01217.50
7.1.50.0160.01125.23
7.1.40.0100.01015.73
7.1.30.0140.00715.31
7.1.20.0180.00415.42
7.1.10.0110.00915.79
7.1.00.0080.04318.94
7.0.330.0130.01315.16
7.0.320.0080.01514.99
7.0.310.0150.00615.04
7.0.300.0160.00415.31
7.0.290.0150.01215.12
7.0.280.0090.01215.20
7.0.270.0080.01215.18
7.0.260.0110.00715.20
7.0.250.0090.00915.08
7.0.240.0220.00015.24
7.0.230.0110.01115.41
7.0.220.0140.00714.95
7.0.210.0230.00415.15
7.0.200.0080.00816.05
7.0.190.0130.00715.42
7.0.180.0060.01215.36
7.0.170.0160.00415.25
7.0.160.0380.00715.10
7.0.150.0110.00715.11
7.0.140.0040.04118.66
7.0.130.0100.00915.38
7.0.120.0160.00515.18
7.0.110.0000.01815.16
7.0.100.0040.01315.02
7.0.90.0130.00515.17
7.0.80.0000.01915.09
7.0.70.0150.00415.28
7.0.60.0110.04117.55
7.0.50.0020.03416.45
7.0.40.0110.04317.57
7.0.30.0280.02317.60
7.0.20.0160.04017.60
7.0.10.0030.03017.75
7.0.00.0130.02217.68
5.6.400.0190.00516.09
5.6.390.0200.00416.06
5.6.380.0220.00615.87
5.6.370.0150.00415.71
5.6.360.0090.01215.93
5.6.350.0090.01516.20
5.6.340.0080.01415.97
5.6.330.0140.00715.76
5.6.320.0200.00316.02
5.6.310.0080.01116.11
5.6.300.0070.01315.95
5.6.290.0040.01615.62
5.6.280.0100.03918.26
5.6.270.0130.00815.88
5.6.260.0120.00915.66
5.6.250.0150.00615.89
5.6.240.0130.00815.83
5.6.230.0160.00515.90
5.6.220.0130.00815.87
5.6.210.0070.04318.33
5.6.200.0090.02616.95
5.6.190.0110.04118.33
5.6.180.0160.04818.19
5.6.170.0170.04118.21
5.6.160.0130.04618.15
5.6.150.0100.04517.01
5.6.140.0160.03917.13
5.6.130.0070.04717.06
5.6.120.0100.04718.54
5.6.110.0110.02218.42
5.6.100.0080.04518.57
5.6.90.0100.04218.41
5.6.80.0070.04918.22
5.6.70.2130.02618.06
5.6.60.0160.00315.89
5.6.50.0040.01515.78
5.6.40.0190.00016.02
5.6.30.0130.00915.45
5.6.20.0090.00915.91
5.6.10.0100.01015.81
5.6.00.0110.00815.67
5.5.380.0180.00315.95
5.5.370.0070.01415.70
5.5.360.0140.00615.71
5.5.350.0100.04418.15
5.5.340.0060.04116.86
5.5.330.0110.02117.98
5.5.320.0210.03117.97
5.5.310.0220.04018.09
5.5.300.0130.04116.87
5.5.290.0090.03816.85
5.5.280.0100.04918.40
5.5.270.0080.04018.44
5.5.260.0130.04418.14
5.5.250.0100.04418.14
5.5.240.0210.03417.98
5.5.230.0030.02215.75
5.5.220.0100.01015.52
5.5.210.0080.01215.87
5.5.200.0090.01115.60
5.5.190.0100.01015.68
5.5.180.0050.01415.89
5.5.170.0150.00916.01
5.5.160.0130.00815.67
5.5.150.0110.00715.70
5.5.140.0120.00815.68
5.5.130.0100.01015.72
5.5.120.0110.01215.72
5.5.110.0040.01515.67
5.5.100.0170.00315.59
5.5.90.0140.00715.98
5.5.80.0030.01515.96
5.5.70.0060.01315.63
5.5.60.0060.01215.82
5.5.50.0060.01215.88
5.5.40.0090.00915.84
5.5.30.0120.01215.83
5.5.20.0090.01215.43
5.5.10.0080.01215.84
5.5.00.0090.01215.78
5.4.450.0510.04216.05
5.4.440.0400.03416.14
5.4.430.0510.04016.10
5.4.420.0150.02616.08
5.4.410.0470.03015.95
5.4.400.0500.03615.85
5.4.390.0470.03515.95
5.4.380.0120.03915.48
5.4.370.0520.03015.75
5.4.360.0220.03315.61
5.4.350.0230.03315.65
5.4.340.0300.02615.54
5.4.330.0070.00812.61
5.4.320.0030.02912.60
5.4.310.0080.02712.60
5.4.300.0040.02412.55
5.4.290.0080.02412.62
5.4.280.0120.02012.44
5.4.270.0090.02012.56
5.4.260.0090.02212.58
5.4.250.0110.02012.39
5.4.240.0080.02312.45
5.4.230.0060.02812.52
5.4.220.0100.01912.55
5.4.210.0050.02412.57
5.4.200.0090.02212.53
5.4.190.0120.01912.47
5.4.180.0090.02112.55
5.4.170.0080.02312.52
5.4.160.0100.02012.38
5.4.150.0060.02412.57
5.4.140.0040.02612.40
5.4.130.0090.02112.34
5.4.120.0080.02112.36
5.4.110.0080.02312.32
5.4.100.0080.02412.48
5.4.90.0100.02012.40
5.4.80.0100.02212.26
5.4.70.0060.02512.34
5.4.60.0060.02512.33
5.4.50.0100.02112.40
5.4.40.0060.02912.38
5.4.30.0070.03112.31
5.4.20.0070.03312.40
5.4.10.0100.02112.32
5.4.00.0060.02711.98
5.3.290.0060.02813.10
5.3.280.0090.02913.01
5.3.270.0050.03213.06
5.3.260.0070.02613.02
5.3.250.0090.02113.04
5.3.240.0090.02412.94
5.3.230.0110.02113.00
5.3.220.0070.02412.86
5.3.210.0070.02512.96
5.3.200.0060.02512.96
5.3.190.0070.03112.98
5.3.180.0070.02913.02
5.3.170.0060.02912.98
5.3.160.0100.02413.04
5.3.150.0100.03113.02
5.3.140.0050.03612.95
5.3.130.0080.03012.89
5.3.120.0050.03512.96
5.3.110.0120.02912.97
5.3.100.0080.03112.74
5.3.90.0150.03712.67
5.3.80.0150.03912.61
5.3.70.0070.03612.62
5.3.60.0040.03512.63
5.3.50.0090.02912.72
5.3.40.0070.03212.73
5.3.30.0120.02812.62
5.3.20.0090.02512.51
5.3.10.0100.02712.38
5.3.00.0060.02312.40
5.2.170.0070.01810.48
5.2.160.0080.02510.49
5.2.150.0060.02110.52
5.2.140.0070.02010.49
5.2.130.0050.02110.48
5.2.120.0050.01910.49
5.2.110.0080.01810.42
5.2.100.0070.01610.55
5.2.90.0050.01810.48
5.2.80.0070.01710.40
5.2.70.0070.01810.51
5.2.60.0040.02010.35
5.2.50.0080.01710.35
5.2.40.0050.02010.40
5.2.30.0080.02010.33
5.2.20.0040.02210.31
5.2.10.0100.01510.21
5.2.00.0020.02110.14
5.1.60.0110.0209.49
5.1.50.0020.0199.39
5.1.40.0070.0149.51
5.1.30.0020.0199.77
5.1.20.0070.0169.63
5.1.10.0040.0179.53
5.1.00.0020.0189.49
5.0.50.0040.0148.47
5.0.40.0040.0128.31
5.0.30.0070.0158.22
5.0.20.0050.0128.20
5.0.10.0080.0098.20
5.0.00.0050.0178.19
4.4.90.0020.0107.46
4.4.80.0030.0087.45
4.4.70.0050.0077.45
4.4.60.0030.0097.45
4.4.50.0030.0097.46
4.4.40.0010.0167.42
4.4.30.0020.0107.45
4.4.20.0040.0097.49
4.4.10.0040.0087.50
4.4.00.0030.0147.45
4.3.110.0020.0117.40
4.3.100.0040.0097.40
4.3.90.0020.0107.39
4.3.80.0020.0147.36
4.3.70.0040.0077.38
4.3.60.0020.0097.38
4.3.50.0040.0097.38
4.3.40.0030.0137.34
4.3.30.0030.0096.71
4.3.20.0020.0106.70
4.3.10.0030.0096.68
4.3.00.0030.01010.22

preferences:
49.58 ms | 401 KiB | 5 Q