3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "2" => "abc", "3" => "aBc", "65" => "Abc", "ab" => "abc12", "lkT" => 2, 45 => "test", "This" => "is this", false => "abc012", " " => 22.22, ]; print_r($array); natcasesort($array); 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.0080.00316.47
8.3.120.0090.00018.72
8.3.110.0080.00020.94
8.3.100.0000.01024.06
8.3.90.0000.00826.77
8.3.80.0040.00419.36
8.3.70.0090.00618.18
8.3.60.0130.00618.27
8.3.50.0160.00518.21
8.3.40.0030.01418.63
8.3.30.0090.00618.62
8.3.20.0040.00421.75
8.3.10.0080.00020.73
8.3.00.0080.00021.65
8.2.250.0100.01016.54
8.2.240.0120.00317.28
8.2.230.0050.00522.58
8.2.220.0000.00837.54
8.2.210.0050.00326.77
8.2.200.0060.00318.88
8.2.190.0120.00316.58
8.2.180.0110.00425.92
8.2.170.0030.01222.96
8.2.160.0100.00322.19
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0030.00720.48
8.2.110.0000.00822.26
8.2.100.0080.00418.03
8.2.90.0080.00018.03
8.2.80.0000.00818.09
8.2.70.0030.00617.80
8.2.60.0000.00818.03
8.2.50.0000.00818.10
8.2.40.0000.00820.98
8.2.30.0080.00020.30
8.2.20.0030.00518.04
8.2.10.0050.00218.84
8.2.00.0050.00217.98
8.1.300.0120.00618.53
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0040.00420.80
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00020.78
8.1.230.0100.00320.84
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00918.53
8.1.160.0000.00718.83
8.1.150.0040.00418.73
8.1.140.0030.00320.31
8.1.130.0040.00720.20
8.1.120.0060.00317.31
8.1.110.0050.00317.33
8.1.100.0100.00017.39
8.1.90.0050.00317.35
8.1.80.0000.00817.26
8.1.70.0030.00317.39
8.1.60.0000.00817.48
8.1.50.0050.00317.47
8.1.40.0040.00417.47
8.1.30.0080.00317.54
8.1.20.0040.00417.61
8.1.10.0100.00017.57
8.1.00.0040.00417.40
8.0.300.0040.00419.65
8.0.290.0080.00016.75
8.0.280.0030.00318.24
8.0.270.0000.00717.17
8.0.260.0000.00618.27
8.0.250.0080.00016.93
8.0.240.0000.00616.83
8.0.230.0070.00016.90
8.0.220.0030.00516.89
8.0.210.0000.00716.81
8.0.200.0030.00316.77
8.0.190.0060.00316.80
8.0.180.0000.00816.76
8.0.170.0040.00416.70
8.0.160.0000.00716.83
8.0.150.0050.00316.77
8.0.140.0000.00716.80
8.0.130.0060.00013.20
8.0.120.0000.00716.68
8.0.110.0030.00516.70
8.0.100.0040.00416.85
8.0.90.0090.00016.82
8.0.80.0030.01116.74
8.0.70.0050.00316.79
8.0.60.0040.00416.71
8.0.50.0000.00716.61
8.0.30.0070.01616.97
8.0.20.0060.01217.27
8.0.10.0030.00516.84
8.0.00.0120.00716.80
7.4.330.0030.00315.55
7.4.320.0000.00616.43
7.4.300.0000.00616.50
7.4.290.0040.00416.37
7.4.280.0040.00316.47
7.4.270.0000.00916.56
7.4.260.0070.00016.48
7.4.250.0030.00316.48
7.4.240.0050.00316.42
7.4.230.0000.00716.46
7.4.220.0000.00816.47
7.4.210.0070.00816.49
7.4.200.0070.00016.41
7.4.160.0170.01016.43
7.4.140.0030.01417.86
7.4.130.0070.01016.40
7.4.120.0160.00616.36
7.4.110.0130.01016.32
7.4.100.0030.01316.25
7.4.90.0090.00616.52
7.4.80.0060.01019.39
7.4.70.0160.00316.34
7.4.60.0120.00416.26
7.4.50.0040.01116.26
7.4.40.0070.01616.36
7.4.00.0100.00314.73
7.3.330.0000.00512.88
7.3.320.0060.00012.98
7.3.310.0030.00316.19
7.3.300.0030.00315.98
7.3.290.0040.00415.98
7.3.280.0090.00916.12
7.3.260.0080.01016.25
7.3.240.0090.01116.27
7.3.230.0040.01316.13
7.3.210.0070.01316.26
7.3.200.0100.00716.37
7.3.190.0060.01216.08
7.3.180.0040.01216.37
7.3.170.0090.00616.43
7.3.160.0120.00416.09
7.3.120.0120.00314.77
7.3.110.0070.00714.70
7.3.100.0040.01214.61
7.3.90.0090.00614.93
7.3.80.0040.01214.63
7.3.70.0030.01014.80
7.3.60.0040.00814.39
7.3.50.0070.00614.59
7.3.40.0100.00414.47
7.3.30.0060.00814.63
7.3.20.0080.00616.51
7.3.10.0090.00616.38
7.3.00.0100.00516.35
7.2.330.0090.00916.16
7.2.320.0120.00916.38
7.2.310.0030.01316.48
7.2.300.0160.00616.57
7.2.290.0100.01316.36
7.2.240.0090.00614.52
7.2.230.0110.00314.82
7.2.220.0100.01014.89
7.2.210.0040.01115.04
7.2.200.0030.01314.66
7.2.190.0080.00614.93
7.2.180.0080.00814.80
7.2.170.0050.00814.68
7.2.160.0090.01014.75
7.2.150.0050.01016.78
7.2.140.0060.01316.63
7.2.130.0040.01016.51
7.2.120.0050.01116.49
7.2.110.0090.00716.49
7.2.100.0090.00716.77
7.2.90.0050.00816.65
7.2.80.0070.00616.68
7.2.70.0070.00816.68
7.2.60.0110.00416.63
7.2.50.0080.00916.60
7.2.40.0070.01016.82
7.2.30.0080.00616.70
7.2.20.0060.00616.63
7.2.10.0060.01016.55
7.2.00.0090.00416.71
7.1.330.0040.00715.56
7.1.320.0100.00315.46
7.1.310.0100.00315.68
7.1.300.0050.00515.69
7.1.290.0090.00615.70
7.1.280.0070.01015.71
7.1.270.0080.00815.75
7.1.260.0050.00815.74
7.1.250.0040.00815.58

preferences:
27.32 ms | 403 KiB | 5 Q