3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ "3" => "aBc", "ab" => "abc12", "lkT" => 2, "65" => "Abc", 45 => "test", "This" => "is this", "2" => "abc", false => "abc012", " " => 22.22, ]; $array2 = [ "5" => "abc", "2" => "bca", "1" => "?", "33" => "he11o", ]; print_r($array1); print_r($array2); array_multisort($array1, SORT_ASC, SORT_NUMERIC, $array2, SORT_DESC, SORT_NATURAL ); print_r($array1); print_r($array2);

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.130.0060.00316.54
8.3.120.0060.00318.80
8.3.110.0030.00720.94
8.3.100.0060.00316.83
8.3.90.0070.01126.77
8.3.80.0060.00317.97
8.3.70.0040.01118.43
8.3.60.0120.00418.30
8.3.50.0120.00918.33
8.3.40.0110.00318.76
8.3.30.0110.00318.70
8.3.20.0050.00321.73
8.3.10.0080.00020.90
8.3.00.0070.00021.77
8.2.250.0170.00318.19
8.2.240.0060.00917.31
8.2.230.0120.00422.58
8.2.220.0000.00816.67
8.2.210.0030.00626.77
8.2.200.0100.00016.50
8.2.190.0160.00618.66
8.2.180.0150.00625.92
8.2.170.0120.00322.96
8.2.160.0030.01022.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00318.76
8.2.110.0090.00020.39
8.2.100.0060.00617.78
8.2.90.0000.00817.84
8.2.80.0030.00621.01
8.2.70.0080.00017.63
8.2.60.0040.00417.63
8.2.50.0000.00819.21
8.2.40.0040.00419.20
8.2.30.0070.00020.48
8.2.20.0060.00317.91
8.2.10.0080.00018.98
8.2.00.0000.00817.92
8.1.300.0090.00018.00
8.1.290.0070.00330.84
8.1.280.0110.00425.92
8.1.270.0040.00420.76
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00620.56
8.1.230.0000.01122.54
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0030.00618.66
8.1.160.0040.00418.78
8.1.150.0000.00818.83
8.1.140.0050.00220.30
8.1.130.0040.00419.07
8.1.120.0100.00017.32
8.1.110.0040.00417.38
8.1.100.0030.00717.44
8.1.90.0050.00317.45
8.1.80.0060.00317.38
8.1.70.0040.00417.39
8.1.60.0000.00817.53
8.1.50.0040.00417.44
8.1.40.0030.00617.48
8.1.30.0040.00417.61
8.1.20.0030.00617.57
8.1.10.0080.00017.48
8.1.00.0040.00417.54
8.0.300.0000.00719.98
8.0.290.0050.00316.58
8.0.280.0040.00418.38
8.0.270.0000.00716.77
8.0.260.0000.00616.85
8.0.250.0000.00716.97
8.0.240.0050.00216.91
8.0.230.0050.00216.84
8.0.220.0070.00016.78
8.0.210.0070.00016.85
8.0.200.0030.00316.95
8.0.190.0040.00416.99
8.0.180.0080.00016.95
8.0.170.0050.00316.79
8.0.160.0050.00316.78
8.0.150.0000.00816.80
8.0.140.0070.00016.82
8.0.130.0000.00613.34
8.0.120.0070.00016.79
8.0.110.0020.00516.82
8.0.100.0000.00716.92
8.0.90.0040.00316.79
8.0.80.0050.00916.86
8.0.70.0060.00316.78
8.0.60.0050.00216.77
8.0.50.0050.00316.92
8.0.30.0130.00816.98
8.0.20.0070.01117.26
8.0.10.0030.00616.89
8.0.00.0100.00816.75
7.4.330.0020.00215.55
7.4.320.0030.00316.57
7.4.300.0060.00016.38
7.4.290.0040.00416.53
7.4.280.0030.00616.41
7.4.270.0030.00616.44
7.4.260.0070.00016.51
7.4.250.0040.00416.47
7.4.240.0060.00316.46
7.4.230.0030.00316.53
7.4.220.0000.00816.57
7.4.210.0060.01016.51
7.4.200.0000.00716.55
7.4.160.0130.00916.52
7.4.140.0120.00617.86
7.4.130.0070.01016.43
7.4.120.0060.01116.33
7.4.110.0090.00916.40
7.4.100.0100.00716.63
7.4.90.0150.00616.51
7.4.80.0140.00319.39
7.4.70.0070.01016.59
7.4.60.0030.01316.41
7.4.50.0100.00716.44
7.4.40.0160.00016.60
7.4.00.0120.00314.41
7.3.330.0020.00212.91
7.3.320.0050.00012.94
7.3.310.0070.00016.16
7.3.300.0080.00016.03
7.3.290.0070.00016.23
7.3.280.0100.00716.14
7.3.260.0120.00816.34
7.3.240.0090.00816.38
7.3.230.0100.00616.14
7.3.210.0030.01316.19
7.3.200.0090.00816.22
7.3.190.0030.01216.35
7.3.180.0070.02816.23
7.3.170.0040.01616.24
7.3.160.0080.00816.22
7.3.120.0070.01014.89
7.3.110.0000.01714.26
7.3.100.0070.00714.54
7.3.90.0030.01014.70
7.3.80.0070.01014.77
7.3.70.0030.01014.35
7.3.60.0000.01414.58
7.3.50.0030.00814.64
7.3.40.0080.00914.67
7.3.30.0050.01114.64
7.3.20.0050.00416.50
7.3.10.0100.00216.36
7.3.00.0070.00916.41
7.2.330.0130.00616.26
7.2.320.0100.00716.51
7.2.310.0100.00916.29
7.2.300.0110.00616.29
7.2.290.0080.01116.12
7.2.240.0070.01114.58
7.2.230.0090.00614.93
7.2.220.0070.01115.10
7.2.210.0000.01414.98
7.2.200.0080.01114.79
7.2.190.0030.00614.80
7.2.180.0110.00214.91
7.2.170.0070.00514.73
7.2.160.0020.00914.87
7.2.150.0040.00716.80
7.2.140.0030.01516.66
7.2.130.0090.00516.45
7.2.120.0100.00716.55
7.2.110.0070.00716.82
7.2.100.0090.00316.63
7.2.90.0040.01116.72
7.2.80.0070.01116.66
7.2.70.0030.01016.63
7.2.60.0090.01116.75
7.2.50.0080.00616.47
7.2.40.0080.01316.69
7.2.30.0040.01516.79
7.2.20.0060.01316.82
7.2.10.0130.01016.73
7.2.00.0080.01316.57
7.1.330.0000.01515.41
7.1.320.0040.01115.65
7.1.310.0060.00615.86
7.1.300.0070.00315.38
7.1.290.0070.00715.72
7.1.280.0050.01015.69
7.1.270.0090.00215.56
7.1.260.0090.00615.89
7.1.250.0060.00515.66

preferences:
27.59 ms | 403 KiB | 5 Q