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_NATURAL); 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.4.20.0150.00618.88
8.4.10.0040.00417.38
8.3.140.0110.00717.11
8.3.130.0040.00418.24
8.3.120.0030.00718.73
8.3.110.0090.00020.94
8.3.100.0090.00024.06
8.3.90.0000.00826.77
8.3.80.0000.01016.38
8.3.70.0170.00316.58
8.3.60.0110.00718.45
8.3.50.0130.00518.33
8.3.40.0150.00618.54
8.3.30.0100.00718.48
8.3.20.0050.00321.64
8.3.10.0040.00420.73
8.3.00.0050.00321.60
8.2.260.0030.00616.60
8.2.250.0120.00616.48
8.2.240.0070.01017.12
8.2.230.0040.00422.58
8.2.220.0050.00537.54
8.2.210.0080.00026.77
8.2.200.0040.00416.63
8.2.190.0140.00716.75
8.2.180.0070.00725.92
8.2.170.0070.00722.96
8.2.160.0140.00022.12
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0030.00720.94
8.2.100.0090.00419.37
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0000.00717.90
8.2.50.0040.00418.07
8.2.40.0000.00718.10
8.2.30.0080.00017.84
8.2.20.0040.00418.09
8.2.10.0050.00218.86
8.2.00.0000.00718.02
8.1.310.0040.00418.42
8.1.300.0060.00317.71
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00420.80
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00317.35
8.1.230.0110.00017.83
8.1.220.0040.00717.74
8.1.210.0040.00418.77
8.1.200.0090.00017.11
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0070.00318.49
8.1.160.0070.00018.86
8.1.150.0020.00518.72
8.1.140.0030.00320.20
8.1.130.0080.00320.30
8.1.120.0000.01117.30
8.1.110.0030.00517.38
8.1.100.0080.00017.31
8.1.90.0060.00317.36
8.1.80.0040.00417.39
8.1.70.0040.00417.40
8.1.60.0000.00817.39
8.1.50.0030.00617.45
8.1.40.0050.00317.42
8.1.30.0040.00817.58
8.1.20.0030.00617.46
8.1.10.0000.00717.52
8.1.00.0040.00417.44
8.0.300.0090.00018.77
8.0.290.0070.00316.75
8.0.280.0030.00318.36
8.0.270.0030.00317.09
8.0.260.0030.00318.36
8.0.250.0070.00016.94
8.0.240.0030.00316.79
8.0.230.0030.00616.77
8.0.220.0000.00716.88
8.0.210.0000.00816.76
8.0.200.0030.00316.74
8.0.190.0040.00416.77
8.0.180.0080.00016.84
8.0.170.0080.00016.75
8.0.160.0000.00716.78
8.0.150.0050.00316.78
8.0.140.0000.00716.78
8.0.130.0030.00313.20
8.0.120.0050.00216.83
8.0.110.0040.00416.68
8.0.100.0040.00416.83
8.0.90.0040.00416.71
8.0.80.0090.01216.88
8.0.70.0030.00516.75
8.0.60.0000.00716.71
8.0.50.0000.00716.88
8.0.30.0090.00916.65
8.0.20.0100.00717.26
8.0.10.0040.00316.95
8.0.00.0100.00916.78
7.4.330.0000.00515.55
7.4.320.0070.00016.54
7.4.300.0000.00616.53
7.4.290.0030.00516.49
7.4.280.0000.00916.45
7.4.270.0040.00416.53
7.4.260.0040.00416.50
7.4.250.0030.00316.51
7.4.240.0060.00316.57
7.4.230.0030.00316.45
7.4.220.0030.00616.32
7.4.210.0080.00716.54
7.4.200.0000.00716.41
7.4.160.0110.01016.44
7.4.140.0090.00917.86
7.4.130.0090.00816.24
7.4.120.0130.01016.41
7.4.110.0100.00716.39
7.4.100.0070.01116.59
7.4.90.0110.00516.49
7.4.80.0040.01519.39
7.4.70.0090.00916.36
7.4.60.0120.00616.45
7.4.50.0040.00816.16
7.4.40.0180.00016.57
7.4.10.0080.00914.83
7.4.00.0050.01115.03
7.3.330.0030.00312.86
7.3.320.0020.00212.92
7.3.310.0030.00316.18
7.3.300.0050.00216.02
7.3.290.0000.00716.08
7.3.280.0090.01016.12
7.3.260.0110.00716.16
7.3.240.0110.00816.31
7.3.230.0070.01016.37
7.3.210.0060.01016.19
7.3.200.0070.01116.50
7.3.190.0060.00916.24
7.3.180.0160.00016.18
7.3.170.0060.01016.21
7.3.160.0130.00816.27
7.3.130.0110.00514.77
7.3.120.0070.01014.51
7.3.110.0100.00714.55
7.3.100.0050.00914.48
7.3.90.0060.00314.69
7.3.80.0020.00914.71
7.3.70.0090.00314.70
7.3.60.0080.00614.56
7.3.50.0060.00714.59
7.3.40.0090.00314.69
7.3.30.0090.00814.63
7.3.20.0060.01016.59
7.3.10.0080.00716.52
7.3.00.0080.00516.55
7.2.330.0060.01616.37
7.2.320.0060.01516.25
7.2.310.0070.01116.32
7.2.300.0070.01016.53
7.2.290.0150.00616.52
7.2.260.0060.01314.83
7.2.250.0100.00814.85
7.2.240.0080.00714.79
7.2.230.0100.00514.83
7.2.220.0110.00214.53
7.2.210.0090.00614.67
7.2.200.0050.01014.78
7.2.190.0080.00614.93
7.2.180.0060.00514.78
7.2.170.0070.01014.82
7.2.160.0040.01114.80
7.2.150.0050.01016.56
7.2.140.0080.00916.68
7.2.130.0080.00516.78
7.2.120.0100.00716.74
7.2.110.0030.00916.72
7.2.100.0050.01116.68
7.2.90.0080.00616.75
7.2.80.0100.00716.75
7.2.70.0070.00616.55
7.2.60.0070.00616.59
7.2.50.0060.00816.56
7.2.40.0080.00716.76
7.2.30.0060.00916.59
7.2.20.0070.01116.54
7.2.10.0090.00716.60
7.2.00.0040.01216.75
7.1.330.0060.01115.73
7.1.320.0040.01115.64
7.1.310.0110.00015.76
7.1.300.0080.00715.60
7.1.290.0060.00515.71
7.1.280.0050.00815.57
7.1.270.0080.00415.52
7.1.260.0080.00615.71
7.1.250.0080.00615.56
7.1.240.0040.00815.63
7.1.230.0030.00515.83
7.1.220.0080.00715.61
7.1.210.0050.00515.44
7.1.200.0080.00615.77
7.1.190.0030.01015.59
7.1.180.0040.01315.80
7.1.170.0030.01315.55
7.1.160.0050.00915.53
7.1.150.0060.00815.87
7.1.140.0050.00815.71
7.1.130.0000.01315.69
7.1.120.0130.00515.70
7.1.110.0050.01115.63
7.1.100.0020.01315.84
7.1.90.0020.01215.82
7.1.80.0050.00815.67
7.1.70.0080.00515.76
7.1.60.0080.00615.61
7.1.50.0050.00815.74
7.1.40.0040.00515.51
7.1.30.0050.00715.71
7.1.20.0060.00915.76
7.1.10.0020.00815.73
7.1.00.0030.00815.66

preferences:
31.48 ms | 403 KiB | 5 Q