3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "2007" => [ "number-xx" => "5", "number-aa" => "30", "number-ef" => "2", "number-sa" => "-10", "number-ab" => "28", ], "2008" => [ "number-xx" => "-1", "number-aa" => "0.5", "number-ef" => "23", "number-sa" => "55", "number-ab" => "43", ] ]; function buildQuilt($data) { return array_reverse(array_map(function ($v) { natsort($v); return $v; }, $data), true); } print_r(buildQuilt($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.4.120.0070.00520.73
8.4.110.0130.00822.54
8.4.100.0090.01117.60
8.4.90.0100.00818.40
8.4.80.0110.01319.28
8.4.70.0170.00417.93
8.4.60.0080.01118.68
8.4.50.0130.00718.55
8.4.40.0070.01417.61
8.4.30.0130.00719.59
8.4.20.0060.01319.65
8.4.10.0100.00717.52
8.3.250.0090.00918.54
8.3.240.0170.00316.72
8.3.230.0100.00916.76
8.3.220.0120.00717.18
8.3.210.0080.00616.69
8.3.200.0030.00516.72
8.3.190.0100.00617.07
8.3.180.0060.00216.48
8.3.170.0110.00719.10
8.3.160.0090.00916.40
8.3.150.0120.00418.82
8.3.140.0040.00416.85
8.3.130.0040.01118.03
8.3.120.0090.00618.99
8.3.110.0030.00620.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0120.00618.43
8.3.60.0070.00718.14
8.3.50.0130.00721.08
8.3.40.0040.01118.60
8.3.30.0140.00018.47
8.3.20.0080.00022.10
8.3.10.0040.00421.95
8.3.00.0040.00421.73
8.2.290.0110.00820.25
8.2.280.0040.00418.21
8.2.270.0060.01517.00
8.2.260.0110.00720.60
8.2.250.0000.00816.46
8.2.240.0090.00920.89
8.2.230.0050.00322.58
8.2.220.0040.00737.54
8.2.210.0050.00326.77
8.2.200.0060.00318.88
8.2.190.0100.00716.58
8.2.180.0140.00018.16
8.2.170.0070.00722.96
8.2.160.0120.00619.34
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00819.66
8.2.110.0090.00020.35
8.2.100.0080.00418.22
8.2.90.0040.00419.21
8.2.80.0060.00317.97
8.2.70.0080.00017.50
8.2.60.0060.00318.04
8.2.50.0000.00818.10
8.2.40.0040.00420.55
8.2.30.0040.00419.31
8.2.20.0020.00518.11
8.2.10.0000.00717.98
8.2.00.0040.00418.36
8.1.330.0090.01021.69
8.1.320.0110.00916.09
8.1.310.0100.00318.67
8.1.300.0100.01017.84
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00020.68
8.1.230.0060.00617.45
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.47
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0040.00418.65
8.1.160.0080.00018.88
8.1.150.0000.00820.32
8.1.140.0000.00719.50
8.1.130.0000.00718.95
8.1.120.0070.00017.51
8.1.110.0040.00417.35
8.1.100.0040.00417.43
8.1.90.0070.00017.40
8.1.80.0040.00417.39
8.1.70.0050.00317.37
8.1.60.0000.00817.57
8.1.50.0040.00417.51
8.1.40.0100.00317.52
8.1.30.0000.00717.66
8.1.20.0070.00017.65
8.1.10.0000.00817.45
8.1.00.0060.00317.43
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0040.00418.41
8.0.270.0070.00017.12
8.0.260.0000.00618.25
8.0.250.0040.00416.77
8.0.240.0030.00616.77
8.0.230.0000.01016.79
8.0.220.0000.00716.85
8.0.210.0040.00316.68
8.0.200.0040.00416.99
8.0.190.0080.00016.96
8.0.180.0040.00416.90
8.0.170.0000.00816.95
8.0.160.0070.00016.86
8.0.150.0040.00716.79
8.0.140.0000.00716.73
8.0.130.0070.00013.38
8.0.120.0000.00716.74
8.0.110.0070.00016.71
8.0.100.0030.00616.91
8.0.90.0040.00416.90
8.0.80.0130.00316.87
8.0.70.0040.00416.75
8.0.60.0000.00716.98
8.0.50.0070.00016.77
8.0.30.0120.00717.09
8.0.20.0080.01117.40
8.0.10.0040.00417.00
8.0.00.0060.01316.46
7.4.330.0050.00015.55
7.4.320.0030.00316.61
7.4.300.0000.00616.60
7.4.290.0050.00516.59
7.4.280.0080.00016.56
7.4.270.0000.00716.52
7.4.260.0000.00716.57
7.4.250.0000.00716.38
7.4.240.0030.00316.40
7.4.230.0040.00216.57
7.4.220.0030.01516.63
7.4.210.0000.01416.52
7.4.200.0000.00716.53
7.4.160.0100.00616.46
7.4.150.0060.01217.40
7.4.140.0110.01017.86
7.4.130.0130.00616.43
7.4.120.0110.00916.48
7.4.110.0090.00916.37
7.4.100.0100.00916.45
7.4.90.0120.00616.50
7.4.80.0040.01319.39
7.4.70.0090.00816.40
7.4.60.0060.00916.54
7.4.50.0030.00916.27
7.4.40.0090.01516.61
7.4.30.0130.00316.58
7.4.10.0040.00714.86
7.4.00.0090.00714.86
7.3.330.0030.00313.25
7.3.320.0000.00513.27
7.3.310.0050.00316.14
7.3.300.0060.00016.25
7.3.290.0090.01116.22
7.3.280.0100.00916.25
7.3.270.0090.00917.40
7.3.260.0150.00716.37
7.3.250.0070.01116.37
7.3.240.0110.00816.37
7.3.230.0070.01116.39
7.3.210.0070.01016.25
7.3.200.0060.01016.64
7.3.190.0090.01216.54
7.3.180.0090.00716.35
7.3.170.0090.00816.43
7.3.160.0090.00616.39
7.3.130.0030.01114.62
7.3.120.0060.00914.82
7.3.110.0070.00714.90
7.3.100.0080.00614.79
7.3.90.0020.01014.84
7.3.80.0050.00914.72
7.3.70.0020.00714.71
7.3.60.0100.00714.66
7.3.50.0060.00714.73
7.3.40.0060.00814.70
7.3.30.0050.00914.66
7.3.20.0040.01216.66
7.3.10.0090.00516.56
7.3.00.0070.00516.68
7.2.330.0060.01216.73
7.2.320.0130.01016.27
7.2.310.0160.00616.27
7.2.300.0100.01316.64
7.2.290.0080.00816.67
7.2.260.0070.01114.84
7.2.250.0050.01014.96
7.2.240.0110.00314.91
7.2.230.0100.00515.08
7.2.220.0030.00814.86
7.2.210.0090.00515.04
7.2.200.0080.00814.86
7.2.190.0060.00814.77
7.2.180.0070.00914.91
7.2.170.0010.01014.96
7.2.160.0030.01015.04
7.2.150.0000.01616.45
7.2.140.0080.00816.68
7.2.130.0080.00616.88
7.2.120.0130.00316.69
7.2.110.0030.01116.77
7.2.100.0030.01116.82
7.2.90.0090.00716.72
7.2.80.0040.00816.79
7.2.70.0080.00616.71
7.2.60.0050.00816.69
7.2.50.0070.00916.75
7.2.40.0020.01116.80
7.2.30.0130.00216.75
7.2.20.0060.00716.71
7.2.10.0030.01116.81
7.2.00.0050.00616.66
7.1.330.0120.00315.81
7.1.320.0100.00315.72
7.1.310.0050.00515.62
7.1.300.0090.00615.74
7.1.290.0110.00415.67
7.1.280.0000.01315.74
7.1.270.0070.00615.79
7.1.260.0050.00815.67
7.1.250.0050.00615.58
7.1.240.0090.00615.42
7.1.230.0060.00615.85
7.1.220.0060.00915.61
7.1.210.0020.01415.77
7.1.200.0080.00615.90
7.1.190.0040.01115.74
7.1.180.0120.00015.50
7.1.170.0130.00015.80
7.1.160.0040.00815.73
7.1.150.0030.01015.75
7.1.140.0070.00715.79
7.1.130.0100.00315.55
7.1.120.0070.00415.86
7.1.110.0030.01015.85
7.1.100.0030.00915.71
7.1.90.0060.00615.74
7.1.80.0030.01215.51
7.1.70.0080.00416.25
7.1.60.0030.01016.43
7.1.50.0030.00715.59
7.1.40.0070.00315.44
7.1.30.1140.04229.54
7.1.20.0950.03326.12
7.1.10.1180.03018.14
7.1.00.0980.03118.14
7.0.330.0070.00715.34
7.0.320.0060.00615.34
7.0.310.0090.00615.24
7.0.300.0000.01315.32
7.0.290.0060.00315.26
7.0.280.0070.00715.10
7.0.270.0120.00615.29
7.0.260.0100.00315.01
7.0.250.0030.00715.42
7.0.240.0060.00915.41
7.0.230.0090.00615.29
7.0.220.0040.00815.27
7.0.210.0060.00615.22
7.0.200.0070.00716.08
7.0.190.0060.01015.41
7.0.180.0070.00415.37
7.0.170.0900.03917.70
7.0.160.0850.03017.67
7.0.150.0980.02817.62
7.0.140.1030.03317.57
7.0.130.0980.03117.71
7.0.120.0980.02817.81
7.0.110.1000.03317.55
7.0.100.0960.02717.67
7.0.90.0750.03717.78
7.0.80.1130.03417.75
7.0.70.0770.03417.77
7.0.60.0790.03517.66
7.0.50.1310.03217.77
7.0.40.0110.02816.59
7.0.30.0070.03316.80
7.0.20.0150.02516.71
7.0.10.0170.03516.78
7.0.00.0950.03016.71
5.6.400.0100.00314.29
5.6.390.0060.00914.20
5.6.380.0040.01114.49
5.6.370.0070.00714.61
5.6.360.0000.01214.07
5.6.350.0060.00314.30
5.6.340.0030.00914.12
5.6.330.0090.00914.08
5.6.320.0060.00914.28
5.6.310.0130.00314.34
5.6.300.0060.00613.88
5.6.290.0000.01214.50
5.6.280.0090.00614.07
5.6.270.0000.01114.25
5.6.260.0030.00714.18
5.6.250.0030.01014.54
5.6.240.0030.00614.32
5.6.230.0030.01014.14
5.6.220.0000.01114.04
5.6.210.0030.01414.47
5.6.200.0030.00914.18
5.6.190.0060.00814.05
5.6.180.0000.01414.15
5.6.170.0030.01014.35
5.6.160.0110.00714.11
5.6.150.0070.01013.91
5.6.140.0000.00914.09
5.6.130.0000.00914.20
5.6.120.0040.01014.21
5.6.110.0000.01614.41
5.6.100.0000.01414.14
5.6.90.0100.00314.11
5.6.80.0070.00714.06
5.6.70.0000.01314.15
5.6.60.0100.00713.99
5.6.50.0030.00914.23
5.6.40.0100.00314.09
5.6.30.0070.00714.14
5.6.20.0040.00814.18
5.6.10.0030.01014.15
5.6.00.0030.00614.04

preferences:
32.91 ms | 403 KiB | 5 Q