3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "2" => "abc", "ab" => "abc12", "lkT" => 2, 45 => "test", "This" => "is this", false => "abc012", " " => 22.22, ]; print_r($array); sort($array, SORT_NUMERIC); 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.130.0070.00418.60
8.3.120.0030.00620.76
8.3.110.0030.01320.94
8.3.100.0100.01024.06
8.3.90.0040.01126.77
8.3.80.0040.00416.63
8.3.70.0150.00616.58
8.3.60.0140.00418.55
8.3.50.0140.00518.12
8.3.40.0080.00818.59
8.3.30.0080.00818.64
8.3.20.0080.00021.73
8.3.10.0060.00320.86
8.3.00.0000.00821.60
8.2.250.0150.00318.67
8.2.240.0150.00317.24
8.2.230.0000.00922.58
8.2.220.0120.00637.54
8.2.210.0080.00026.77
8.2.200.0000.01016.25
8.2.190.0070.01316.58
8.2.180.0150.00625.92
8.2.170.0110.00322.96
8.2.160.0000.01422.18
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00421.18
8.2.110.0090.00019.33
8.2.100.0110.00017.78
8.2.90.0060.00318.22
8.2.80.0000.00818.16
8.2.70.0040.00417.63
8.2.60.0000.00817.63
8.2.50.0080.00017.63
8.2.40.0030.00619.06
8.2.30.0050.00220.56
8.2.20.0000.00818.03
8.2.10.0040.00418.86
8.2.00.0000.00718.04
8.1.300.0090.00019.88
8.1.290.0040.00418.88
8.1.280.0070.01325.92
8.1.270.0040.00420.64
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00622.37
8.1.230.0070.00422.66
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0070.00317.23
8.1.190.0000.00917.23
8.1.180.0090.00018.10
8.1.170.0030.00518.30
8.1.160.0000.00718.72
8.1.150.0020.00518.80
8.1.140.0050.00320.25
8.1.130.0040.00419.11
8.1.120.0030.00617.37
8.1.110.0040.00417.28
8.1.100.0040.00417.45
8.1.90.0040.00417.38
8.1.80.0030.00317.36
8.1.70.0040.00417.27
8.1.60.0060.00317.50
8.1.50.0040.00417.47
8.1.40.0000.00817.50
8.1.30.0040.00417.47
8.1.20.0040.00417.56
8.1.10.0000.00817.40
8.1.00.0000.00717.47
8.0.300.0040.00419.94
8.0.290.0020.00516.58
8.0.280.0000.00718.28
8.0.270.0080.00017.22
8.0.260.0000.00716.76
8.0.250.0040.00416.93
8.0.240.0070.00016.86
8.0.230.0050.00216.90
8.0.220.0030.00316.86
8.0.210.0040.00416.76
8.0.200.0000.00616.75
8.0.190.0040.00416.80
8.0.180.0000.00716.85
8.0.170.0000.00916.84
8.0.160.0000.00716.71
8.0.150.0000.00716.80
8.0.140.0030.00316.78
8.0.130.0000.00513.23
8.0.120.0080.00016.79
8.0.110.0030.00616.84
8.0.100.0040.00416.66
8.0.90.0070.00016.80
8.0.80.0070.00716.74
8.0.70.0030.00516.83
8.0.60.0040.00416.72
8.0.50.0040.00416.70
8.0.30.0090.00916.77
8.0.20.0130.00616.89
8.0.10.0040.00417.00
8.0.00.0100.01016.72
7.4.330.0050.00016.83
7.4.320.0030.00316.46
7.4.300.0000.00616.36
7.4.290.0030.00316.41
7.4.280.0040.00416.55
7.4.270.0040.00416.44
7.4.260.0040.00416.41
7.4.250.0070.00016.51
7.4.240.0030.00516.49
7.4.230.0000.00716.24
7.4.220.0000.00816.51
7.4.210.0100.00616.54
7.4.200.0030.00316.54
7.4.160.0110.00516.34
7.4.140.0040.01917.86
7.4.130.0070.01016.44
7.4.120.0100.01016.51
7.4.110.0160.00016.42
7.4.100.0090.00916.45
7.4.90.0140.00316.48
7.4.80.0040.01819.39
7.4.70.0100.00616.48
7.4.60.0000.01616.48
7.4.50.0060.01016.15
7.4.40.0050.01516.14
7.4.00.0070.01014.88
7.3.330.0030.00312.87
7.3.320.0000.00512.93
7.3.310.0050.00316.22
7.3.300.0020.00516.11
7.3.290.0040.00416.17
7.3.280.0080.00616.14
7.3.260.0110.00816.32
7.3.240.0090.00916.24
7.3.230.0100.00716.28
7.3.210.0030.02216.11
7.3.200.0060.01016.15
7.3.190.0140.00616.12
7.3.180.0130.00316.11
7.3.170.0130.00316.22
7.3.160.0130.01016.16
7.3.120.0000.01514.96
7.3.110.0030.01314.68
7.3.100.0090.00614.37
7.3.90.0030.00614.31
7.3.80.0070.00714.48
7.3.70.0060.00614.71
7.3.60.0030.01014.64
7.3.50.0080.00714.57
7.3.40.0040.00814.58
7.3.30.0080.00514.63
7.3.20.0060.00916.36
7.3.10.0070.00716.49
7.3.00.0100.00516.36
7.2.330.0090.01216.56
7.2.320.0040.01616.32
7.2.310.0090.00916.46
7.2.300.0070.01116.43
7.2.290.0060.01016.36
7.2.250.0070.01015.06
7.2.240.0140.00715.06
7.2.230.0040.01114.84
7.2.220.0030.01014.77
7.2.210.0040.01215.08
7.2.200.0090.00615.00
7.2.190.0100.00714.85
7.2.180.0100.00414.88
7.2.170.0050.00714.86
7.2.160.0090.00814.77
7.2.150.0060.01216.56
7.2.140.0070.00616.67
7.2.130.0100.00616.85
7.2.120.0040.00816.69
7.2.110.0090.00716.70
7.2.100.0070.00816.48
7.2.90.0070.00916.72
7.2.80.0110.00516.70
7.2.70.0070.01116.81
7.2.60.0100.00616.60
7.2.50.0070.00716.70
7.2.40.0080.00616.77
7.2.30.0120.00616.77
7.2.20.0110.01116.72
7.2.10.0110.00916.61
7.2.00.0050.00916.81
7.1.330.0030.01015.89
7.1.320.0030.01315.82
7.1.310.0000.01515.83
7.1.300.0070.00315.79
7.1.290.0030.01015.72
7.1.280.0080.00615.56
7.1.270.0090.00515.70
7.1.260.0090.00515.62
7.1.250.0130.00515.63

preferences:
32.54 ms | 403 KiB | 5 Q