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); arsort($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.0000.00918.41
8.3.120.0040.00418.75
8.3.110.0140.00420.94
8.3.100.0000.00824.06
8.3.90.0120.00326.77
8.3.80.0060.00319.36
8.3.70.0140.00718.25
8.3.60.0060.01218.27
8.3.50.0060.01118.05
8.3.40.0040.01118.43
8.3.30.0040.01118.46
8.3.20.0080.00021.73
8.3.10.0040.00420.76
8.3.00.0030.00521.73
8.2.250.0110.00716.72
8.2.240.0080.00017.14
8.2.230.0070.00722.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0030.01316.63
8.2.180.0180.00325.92
8.2.170.0100.00322.96
8.2.160.0070.01022.31
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00026.16
8.2.110.0030.00719.30
8.2.100.0040.00717.78
8.2.90.0020.00520.65
8.2.80.0040.00719.65
8.2.70.0040.00417.89
8.2.60.0040.00418.16
8.2.50.0040.00419.34
8.2.40.0080.00020.90
8.2.30.0030.00520.55
8.2.20.0060.00317.98
8.2.10.0040.00418.84
8.2.00.0000.00719.83
8.1.300.0080.00818.29
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0000.00820.63
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00321.27
8.1.230.0090.00320.88
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00517.10
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0030.00518.54
8.1.160.0070.00018.85
8.1.150.0070.00018.85
8.1.140.0030.00320.24
8.1.130.0100.00020.23
8.1.120.0040.00417.34
8.1.110.0040.00417.27
8.1.100.0080.00317.26
8.1.90.0040.00417.40
8.1.80.0030.00617.25
8.1.70.0040.00417.41
8.1.60.0040.00417.48
8.1.50.0000.00817.33
8.1.40.0000.00917.44
8.1.30.0030.00717.47
8.1.20.0060.00317.59
8.1.10.0040.00417.55
8.1.00.0040.00417.47
8.0.300.0040.00419.90
8.0.290.0070.00016.58
8.0.280.0000.00718.30
8.0.270.0050.00317.13
8.0.260.0030.00318.27
8.0.250.0040.00716.91
8.0.240.0030.00316.82
8.0.230.0030.00316.93
8.0.220.0000.00716.80
8.0.210.0040.00416.88
8.0.200.0000.00716.89
8.0.190.0040.00416.82
8.0.180.0040.00416.84
8.0.170.0030.00616.83
8.0.160.0000.00716.83
8.0.150.0030.00316.72
8.0.140.0000.00816.63
8.0.130.0000.00513.26
8.0.120.0030.00516.70
8.0.110.0040.00416.92
8.0.100.0000.00716.71
8.0.90.0000.00816.83
8.0.80.0040.01216.80
8.0.70.0000.00716.69
8.0.60.0000.00816.77
8.0.50.0040.00416.86
8.0.30.0140.01016.73
8.0.20.0100.01316.88
8.0.10.0030.00516.76
8.0.00.0130.00616.66
7.4.330.0000.00516.78
7.4.320.0000.00716.57
7.4.300.0040.00416.45
7.4.290.0030.00516.42
7.4.280.0000.00716.42
7.4.270.0050.00316.45
7.4.260.0000.00716.40
7.4.250.0000.00716.34
7.4.240.0000.00716.41
7.4.230.0000.00716.24
7.4.220.0000.00816.27
7.4.210.0070.01116.59
7.4.200.0030.00316.55
7.4.140.0140.01717.86
7.4.130.0080.01116.44
7.4.120.0140.00716.40
7.4.110.0000.01716.35
7.4.100.0040.01316.38
7.4.90.0130.00316.34
7.4.80.0070.01419.39
7.4.70.0110.00616.27
7.4.60.0070.01016.27
7.4.50.0060.00916.21
7.4.40.0100.00616.29
7.4.00.0070.01014.70
7.3.330.0000.00612.89
7.3.320.0000.00612.97
7.3.310.0070.00016.08
7.3.300.0040.00416.14
7.3.290.0000.00716.11
7.3.280.0100.01015.98
7.3.260.0120.00816.17
7.3.240.0090.00816.44
7.3.230.0040.01316.21
7.3.210.0060.01016.14
7.3.200.0140.00716.45
7.3.190.0100.00516.43
7.3.180.0120.00416.04
7.3.170.0100.00616.13
7.3.160.0180.00316.11
7.3.120.0070.01114.93
7.3.110.0080.00414.82
7.3.100.0100.01014.68
7.3.90.0100.00614.76
7.3.80.0090.00314.59
7.3.70.0060.00614.76
7.3.60.0070.00414.52
7.3.50.0070.00814.49
7.3.40.0070.00814.70
7.3.30.0050.00614.79
7.3.20.0030.01016.45
7.3.10.0090.00216.43
7.3.00.0000.01516.51
7.2.330.0100.01016.40
7.2.320.0110.00616.25
7.2.310.0070.01016.50
7.2.300.0140.00316.50
7.2.290.0080.01216.55
7.2.250.0060.01214.56
7.2.240.0060.01314.54
7.2.230.0030.01014.89
7.2.220.0100.00714.85
7.2.210.0080.00414.66
7.2.200.0040.00814.89
7.2.190.0090.00614.63
7.2.180.0100.00714.90
7.2.170.0050.01314.78
7.2.160.0080.01115.00
7.2.150.0060.01216.52
7.2.140.0050.01016.76
7.2.130.0100.00816.73
7.2.120.0040.01116.75
7.2.110.0110.00516.68
7.2.100.0060.00816.48
7.2.90.0070.00716.55
7.2.80.0050.01216.69
7.2.70.0050.01216.68
7.2.60.0100.00816.50
7.2.50.0060.00916.72
7.2.40.0120.00216.60
7.2.30.0080.01016.81
7.2.20.0020.01116.61
7.2.10.0060.00716.60
7.2.00.0070.01116.56
7.1.330.0060.01215.79
7.1.320.0070.00715.70
7.1.310.0060.00615.59
7.1.300.0060.01115.74
7.1.290.0000.01315.86
7.1.280.0030.00915.57
7.1.270.0080.00715.68
7.1.260.0030.00915.53
7.1.250.0070.00815.79
7.1.240.0030.01315.70
7.1.230.0000.01115.49
7.1.220.0060.00615.54
7.1.210.0070.00715.61
7.1.200.0070.00415.72
7.1.190.0030.01315.54
7.1.180.0040.00415.78
7.1.170.0100.00615.59
7.1.160.0040.01115.82
7.1.150.0130.00315.71
7.1.140.0100.00315.87
7.1.130.0090.00315.85
7.1.120.0000.00915.32
7.1.110.0000.01415.64
7.1.100.0060.00615.66
7.1.90.0070.00715.80
7.1.80.0060.00615.89
7.1.70.0030.01115.79
7.1.60.0090.00315.93
7.1.50.0090.00315.70
7.1.40.0060.00915.70
7.1.30.0000.00915.79
7.1.20.0100.00315.80
7.1.10.0060.00915.79
7.1.00.0060.00315.40

preferences:
28.39 ms | 403 KiB | 5 Q