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" => "Malinche", "fecha" => "2011-02-28 00:00:00", ), array( "id" => 4, "name" => "Pepito", "fecha" => "2008-05-30 00:00:00", ), ); usort($gatos, function($gato1,$gato2){ return strcmp($gato1["fecha"]->format("md"),$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.0150.00018.18
8.3.50.0110.00922.06
8.3.40.0070.00718.79
8.3.30.0140.00019.05
8.3.20.0000.00820.25
8.3.10.0110.00423.50
8.3.00.0090.00317.63
8.2.180.0000.01518.43
8.2.170.0090.01322.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0040.00422.30
8.2.110.0040.00422.13
8.2.100.0000.01217.97
8.2.90.0030.00519.16
8.2.80.0000.00917.97
8.2.70.0050.00317.75
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0080.00019.89
8.2.30.0080.00018.14
8.2.20.0030.00517.80
8.2.10.0040.00418.01
8.2.00.0040.00417.88
8.1.280.0110.00325.92
8.1.270.0040.00422.11
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0000.00824.02
8.1.230.0080.00419.02
8.1.220.0060.00317.74
8.1.210.0000.01018.77
8.1.200.0100.00017.36
8.1.190.0040.00417.68
8.1.180.0000.00918.10
8.1.170.0030.00618.59
8.1.160.0040.00422.04
8.1.150.0070.00018.57
8.1.140.0060.00317.60
8.1.130.0070.00017.84
8.1.120.0000.00717.51
8.1.110.0000.00717.36
8.1.100.0070.00017.55
8.1.90.0000.00717.45
8.1.80.0030.00317.46
8.1.70.0030.00317.44
8.1.60.0030.00617.53
8.1.50.0000.00817.55
8.1.40.0040.00417.54
8.1.30.0000.00817.62
8.1.20.0070.00017.71
8.1.10.0050.00317.63
8.1.00.0040.00417.38
8.0.300.0000.00719.15
8.0.290.0000.00817.05
8.0.280.0000.00718.30
8.0.270.0030.00317.08
8.0.260.0060.00017.26
8.0.250.0030.00316.98
8.0.240.0040.00416.83
8.0.230.0040.00416.95
8.0.220.0000.00816.92
8.0.210.0020.00516.86
8.0.200.0030.00316.92
8.0.190.0040.00416.98
8.0.180.0030.00716.94
8.0.170.0070.00016.98
8.0.160.0040.00416.94
8.0.150.0070.00016.88
8.0.140.0050.00216.92
8.0.130.0030.00313.40
8.0.120.0040.00416.92
8.0.110.0000.00716.92
8.0.100.0070.00016.81
8.0.90.0000.00717.00
8.0.80.0040.01116.94
8.0.70.0050.00316.91
8.0.60.0040.00416.85
8.0.50.0000.00716.89
8.0.30.0100.00817.35
8.0.20.0090.01117.40
8.0.10.0000.00717.11
8.0.00.0100.00716.90
7.4.330.0050.00015.08
7.4.320.0000.00716.59
7.4.300.0070.00016.61
7.4.290.0070.00016.65
7.4.280.0000.00716.50
7.4.270.0040.00416.53
7.4.260.0030.00316.59
7.4.250.0000.00716.55
7.4.240.0020.00516.47
7.4.230.0000.00716.64
7.4.220.0120.00716.46
7.4.210.0060.00916.61
7.4.200.0050.00216.36
7.4.190.0050.00216.67
7.4.160.0060.00916.59
7.4.150.0060.01917.40
7.4.140.0080.01117.86
7.4.130.0090.00916.45
7.4.120.0100.00916.45
7.4.110.0110.01116.57
7.4.100.0140.00416.58
7.4.90.0050.01416.41
7.4.80.0040.01419.39
7.4.70.0050.01116.61
7.4.60.0080.00916.38
7.4.50.0080.00616.53
7.4.40.0090.00818.53
7.4.30.0170.01016.36
7.4.20.0080.01116.30
7.4.10.0080.01216.42
7.4.00.0060.00915.90
7.3.330.0030.00313.38
7.3.320.0000.00513.24
7.3.310.0000.00716.43
7.3.300.0000.00716.23
7.3.290.0070.00616.34
7.3.280.0080.00816.32
7.3.270.0100.00717.40
7.3.260.0110.01216.36
7.3.250.0070.01316.39
7.3.240.0150.00916.28
7.3.230.0070.01016.52
7.3.210.0070.01016.33
7.3.200.0060.00919.39
7.3.190.0130.00716.29
7.3.180.0100.00816.38
7.3.170.0100.00716.31
7.3.160.0130.00616.36
7.3.150.0070.02016.33
7.3.140.0110.00816.16
7.3.130.0090.00916.21
7.3.120.0060.01015.70
7.3.110.0100.01016.29
7.3.100.0110.00716.43
7.3.90.0070.01416.43
7.3.80.0180.00016.04
7.3.70.0150.00616.17
7.3.60.0140.00716.07
7.3.50.0140.00716.19
7.3.40.0060.01016.36
7.3.30.0060.01216.11
7.3.20.0140.00616.38
7.3.10.0120.01016.23
7.3.00.0170.00316.30
7.2.330.0100.00716.44
7.2.320.0130.01016.69
7.2.310.0100.01016.48
7.2.300.0110.00716.37
7.2.290.0170.00316.61
7.2.280.0160.00316.55
7.2.270.0210.00316.32
7.2.260.0100.00916.35
7.2.250.0140.00416.39
7.2.240.0140.00516.39
7.2.230.0100.01016.20
7.2.220.0060.01316.69
7.2.210.0150.00316.46
7.2.200.0110.01116.09
7.2.190.0100.01316.36
7.2.180.0090.00916.39
7.2.170.0080.01216.29
7.2.160.0060.01316.34
7.2.150.0090.00916.36
7.2.140.0060.01216.49
7.2.130.0090.00916.08
7.2.120.0110.01116.38
7.2.110.0180.00616.36
7.2.100.0060.01416.18
7.2.90.0150.00716.26
7.2.80.0150.01216.26
7.2.70.0230.00416.18
7.2.60.0060.01116.60
7.2.50.0100.01416.40
7.2.40.0090.01716.25
7.2.30.0140.00716.32
7.2.20.0160.00616.43
7.2.10.0190.00516.48
7.2.00.0130.00817.91
7.1.330.0180.00815.42
7.1.320.0230.01315.32
7.1.310.0100.01015.32
7.1.300.0100.01015.56
7.1.290.0080.00815.40
7.1.280.0130.00415.39
7.1.270.0040.01315.18
7.1.260.0100.00715.16
7.1.250.0070.01115.31
7.1.240.0130.01015.20
7.1.230.0180.01215.00
7.1.220.0170.00315.27
7.1.210.0220.00915.29
7.1.200.0090.00715.45
7.1.190.0160.01214.89
7.1.180.0140.00715.11
7.1.170.0260.01015.14
7.1.160.0130.00715.21
7.1.150.0160.00415.18
7.1.140.0110.01115.36
7.1.130.0130.00715.35
7.1.120.0140.01115.37
7.1.110.0070.01115.19
7.1.100.0080.00816.49
7.1.90.0080.00815.20
7.1.80.0150.01615.33
7.1.70.0070.01216.29
7.1.60.0170.00717.35
7.1.50.0110.01425.05
7.1.40.0120.00615.64
7.1.30.0100.00715.28
7.1.20.0300.00315.34
7.1.10.0090.00915.25
7.1.00.0030.04518.80
7.0.330.0110.00615.04
7.0.320.0120.00415.02
7.0.310.0110.01114.98
7.0.300.0090.00915.15
7.0.290.0110.00514.89
7.0.280.0090.00915.01
7.0.270.0180.00614.94
7.0.260.0040.01414.80
7.0.250.0110.00614.88
7.0.240.0110.00614.92
7.0.230.0060.00914.94
7.0.220.0110.00914.90
7.0.210.0100.01015.19
7.0.200.0080.00615.75
7.0.190.0140.00415.03
7.0.180.0160.00014.96
7.0.170.0100.00715.09
7.0.160.0170.00015.11
7.0.150.0000.01614.88
7.0.140.0050.04218.54
7.0.130.0120.00615.30
7.0.120.0140.01114.95
7.0.110.0140.00515.18
7.0.100.0080.00814.95
7.0.90.0120.01115.07
7.0.80.0070.01014.95
7.0.70.0050.01014.86
7.0.60.0050.04617.42
7.0.50.0080.04616.34
7.0.40.0070.04417.51
7.0.30.0170.03817.48
7.0.20.0240.02717.57
7.0.10.0110.03617.60
7.0.00.0060.02417.59
5.6.400.0030.01615.97
5.6.390.0140.01015.86
5.6.380.0070.01115.49
5.6.370.0080.01115.59
5.6.360.0030.01515.79
5.6.350.0140.00315.52
5.6.340.0090.00915.79
5.6.330.0110.00815.70
5.6.320.0090.00915.74
5.6.310.0180.00315.60
5.6.300.0060.01315.63
5.6.290.0090.00915.28
5.6.280.0030.04218.38
5.6.270.0090.00915.80
5.6.260.0100.00715.72
5.6.250.0110.00815.70
5.6.240.0060.01615.88
5.6.230.0030.01415.88
5.6.220.0150.00315.89
5.6.210.0060.02618.30
5.6.200.0020.02916.93
5.6.190.0070.04918.18
5.6.180.0240.02618.27
5.6.170.0190.04318.00
5.6.160.0070.04618.14
5.6.150.0030.03717.06
5.6.140.0080.02916.87
5.6.130.0080.04316.94
5.6.120.0040.02618.34
5.6.110.0030.05018.27
5.6.100.0070.03218.28
5.6.90.0100.04518.34
5.6.80.0150.03417.96
5.6.70.2220.02717.96
5.6.60.0130.00415.67
5.6.50.0070.01015.86
5.6.40.0120.00615.96
5.6.30.0110.00915.51
5.6.20.0070.01015.61
5.6.10.0040.01515.62
5.6.00.0030.01315.67
5.5.380.0040.01315.94
5.5.370.0060.01215.82
5.5.360.0120.00615.80
5.5.350.0100.04318.07
5.5.340.0140.03916.84
5.5.330.0030.02917.95
5.5.320.0170.02217.98
5.5.310.0180.04317.88
5.5.300.0130.03516.78
5.5.290.0090.02816.74
5.5.280.0140.03418.40
5.5.270.0080.04718.30
5.5.260.0000.03218.20
5.5.250.0060.04018.13
5.5.240.0160.01817.89
5.5.230.0040.01515.79
5.5.220.0090.00815.79
5.5.210.0090.01215.77
5.5.200.0070.01015.61
5.5.190.0070.01115.52
5.5.180.0060.01215.75
5.5.170.0120.00615.57
5.5.160.0070.01015.80
5.5.150.0000.01815.77
5.5.140.0060.01215.38
5.5.130.0060.01215.31
5.5.120.0130.00315.68
5.5.110.0100.00715.60
5.5.100.0070.01015.39
5.5.90.0120.01215.75
5.5.80.0030.01315.84
5.5.70.0000.01615.69
5.5.60.0070.01015.78
5.5.50.0120.00615.59
5.5.40.0060.01215.61
5.5.30.0060.01015.62
5.5.20.0030.01315.73
5.5.10.0080.00915.43
5.5.00.0050.01315.77
5.4.450.0530.02015.89
5.4.440.0600.03715.96
5.4.430.0350.03616.05
5.4.420.0130.03315.96
5.4.410.0440.03115.93
5.4.400.0460.02915.91
5.4.390.0580.02915.84
5.4.380.0190.02915.68
5.4.370.0200.02615.69
5.4.360.0170.04015.63
5.4.350.0170.03215.66
5.4.340.0210.03715.64
5.4.330.0080.00412.43
5.4.320.0050.02712.59
5.4.310.0090.02112.53
5.4.300.0060.02212.59
5.4.290.0040.02912.44
5.4.280.0080.02912.49
5.4.270.0070.02512.47
5.4.260.0080.03412.51
5.4.250.0170.05012.35
5.4.240.0210.04412.42
5.4.230.0170.05212.37
5.4.220.0090.03712.36
5.4.210.0130.04112.41
5.4.200.0050.02812.54
5.4.190.0100.03912.39
5.4.180.0140.03512.46
5.4.170.0100.02712.45
5.4.160.0100.02312.36
5.4.150.0050.02512.41
5.4.140.0080.02412.34
5.4.130.0100.02012.34
5.4.120.0100.02112.27
5.4.110.0080.02812.19
5.4.100.0090.03012.35
5.4.90.0130.04812.27
5.4.80.0070.03412.30
5.4.70.0040.03512.31
5.4.60.0170.02712.33
5.4.50.0070.03812.29
5.4.40.0040.03012.28
5.4.30.0100.03412.19
5.4.20.0120.03212.23
5.4.10.0130.03312.35
5.4.00.0050.03412.04
5.3.290.0050.02612.93
5.3.280.0100.03112.87
5.3.270.0070.03412.95
5.3.260.0120.03212.94
5.3.250.0100.04412.93
5.3.240.0050.04212.85
5.3.230.0080.03312.89
5.3.220.0080.02712.86
5.3.210.0060.02512.89
5.3.200.0050.02512.89
5.3.190.0080.03112.99
5.3.180.0070.03312.89
5.3.170.0070.03312.94
5.3.160.0050.03612.93
5.3.150.0080.03412.98
5.3.140.0070.03413.02
5.3.130.0070.03812.92
5.3.120.0050.03512.91
5.3.110.0090.03012.92
5.3.100.0090.03212.58
5.3.90.0130.03112.62
5.3.80.0100.02412.53
5.3.70.0100.03212.50
5.3.60.0040.03512.58
5.3.50.0100.03012.59
5.3.40.0100.03412.59
5.3.30.0120.03312.50
5.3.20.0120.03612.38
5.3.10.0170.03312.26
5.3.00.0090.03312.23
5.2.170.0090.03310.48
5.2.160.0100.04610.49
5.2.150.0070.02910.48
5.2.140.0090.02710.50
5.2.130.0070.02010.44
5.2.120.0050.02210.48
5.2.110.0110.02510.42
5.2.100.0060.02310.47
5.2.90.0100.02610.46
5.2.80.0060.02110.40
5.2.70.0090.02410.45
5.2.60.0090.04810.31
5.2.50.0070.03510.41
5.2.40.0050.02510.37
5.2.30.0070.03710.30
5.2.20.0070.02810.28
5.2.10.0100.02910.26
5.2.00.0080.02310.12
5.1.60.0070.0209.42
5.1.50.0060.0289.44
5.1.40.0060.0169.54
5.1.30.0030.0209.69
5.1.20.0040.0229.66
5.1.10.0100.0209.65
5.1.00.0040.0239.48
5.0.50.0100.0188.38
5.0.40.0110.0188.31
5.0.30.0080.0238.22
5.0.20.0060.0168.20
5.0.10.0050.0138.20
5.0.00.0070.0338.19
4.4.90.0090.0127.46
4.4.80.0040.0197.45
4.4.70.0060.0217.45
4.4.60.0020.0127.45
4.4.50.0060.0147.45
4.4.40.0050.0187.42
4.4.30.0020.0117.45
4.4.20.0070.0077.49
4.4.10.0090.0097.49
4.4.00.0070.0147.45
4.3.110.0060.0117.41
4.3.100.0010.0127.40
4.3.90.0050.0107.39
4.3.80.0030.0157.36
4.3.70.0040.0097.39
4.3.60.0060.0177.38
4.3.50.0050.0117.38
4.3.40.0040.0207.34
4.3.30.0030.0136.71
4.3.20.0040.0156.70
4.3.10.0010.0166.68
4.3.00.0120.01310.22

preferences:
41.72 ms | 401 KiB | 5 Q