3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 1 => "one", "two" => "two", 3.01 => "three", "4" => "four", false => "five", ]; krsort($arr, SORT_STRING); var_dump($arr);

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.0080.00818.93
8.4.10.0070.00719.32
8.3.140.0060.00317.09
8.3.130.0040.00418.59
8.3.120.0090.00020.50
8.3.110.0190.00020.94
8.3.100.0060.00324.06
8.3.90.0070.01326.77
8.3.80.0050.00519.36
8.3.70.0060.00916.75
8.3.60.0120.00918.53
8.3.50.0050.01317.31
8.3.40.0040.01118.73
8.3.30.0150.00318.69
8.3.20.0040.00421.82
8.3.10.0060.00318.98
8.3.00.0040.00421.59
8.2.260.0040.00418.81
8.2.250.0000.00816.48
8.2.240.0080.00017.11
8.2.230.0040.00422.58
8.2.220.0030.00737.54
8.2.210.0070.00026.77
8.2.200.0030.00618.88
8.2.190.0100.01016.63
8.2.180.0070.00718.29
8.2.170.0040.01122.96
8.2.160.0150.00418.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0020.00526.16
8.2.110.0070.00319.39
8.2.100.0060.00617.78
8.2.90.0040.00418.03
8.2.80.0000.00917.97
8.2.70.0080.00017.93
8.2.60.0050.00318.09
8.2.50.0070.00019.34
8.2.40.0080.00021.06
8.2.30.0030.00620.31
8.2.20.0000.00717.93
8.2.10.0040.00418.86
8.2.00.0040.00417.93
8.1.310.0080.00016.63
8.1.300.0120.00320.31
8.1.290.0100.00030.84
8.1.280.0100.01025.92
8.1.270.0040.00420.84
8.1.260.0070.00326.35
8.1.250.0080.00028.09
8.1.240.0000.00922.59
8.1.230.0050.00521.03
8.1.220.0000.00817.74
8.1.210.0000.00918.85
8.1.200.0080.00017.23
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0040.00418.39
8.1.160.0040.00418.69
8.1.150.0000.00818.81
8.1.140.0000.00820.17
8.1.130.0030.00620.31
8.1.120.0070.00017.36
8.1.110.0000.00817.41
8.1.100.0070.00017.31
8.1.90.0050.00217.28
8.1.80.0020.00517.41
8.1.70.0000.00717.24
8.1.60.0000.00817.48
8.1.50.0000.00817.47
8.1.40.0080.00017.41
8.1.30.0000.00717.48
8.1.20.0040.00417.58
8.1.10.0080.00017.60
8.1.00.0040.00417.48
8.0.300.0000.00719.92
8.0.290.0060.00316.63
8.0.280.0070.00018.26
8.0.270.0030.00317.18
8.0.260.0030.00318.29
8.0.250.0000.00716.94
8.0.240.0030.00316.76
8.0.230.0000.00716.78
8.0.220.0000.00716.81
8.0.210.0070.00016.71
8.0.200.0060.00016.79
8.0.190.0040.00416.78
8.0.180.0040.00416.91
8.0.170.0090.00016.82
8.0.160.0040.00416.72
8.0.150.0060.00316.65
8.0.140.0000.00716.78
8.0.130.0000.00713.26
8.0.120.0040.00416.68
8.0.110.0000.00716.77
8.0.100.0040.00416.69
8.0.90.0080.00016.64
8.0.80.0060.01316.80
8.0.70.0000.00716.74
8.0.60.0000.00716.75
8.0.50.0050.00216.82
8.0.30.0150.00316.98
8.0.20.0100.01417.00
8.0.10.0030.00516.89
8.0.00.0110.00816.66
7.4.330.0000.00516.81
7.4.320.0000.00616.49
7.4.300.0000.00716.42
7.4.290.0050.00316.57
7.4.280.0000.00816.41
7.4.270.0030.00616.52
7.4.260.0040.00416.46
7.4.250.0040.00416.54
7.4.240.0040.00416.45
7.4.230.0070.00016.55
7.4.220.0040.00416.23
7.4.210.0100.00816.45
7.4.200.0070.00016.33
7.4.160.0100.00816.33
7.4.140.0130.00717.86
7.4.130.0110.00816.48
7.4.120.0060.01216.38
7.4.110.0120.00616.39
7.4.100.0130.00316.41
7.4.90.0070.01016.43
7.4.80.0060.01519.39
7.4.70.0030.02016.49
7.4.60.0100.00716.39
7.4.50.0040.01416.20
7.4.40.0090.00916.03
7.4.00.0030.01314.98
7.3.330.0000.00512.94
7.3.320.0050.00013.06
7.3.310.0000.00716.13
7.3.300.0070.00016.13
7.3.290.0070.00716.13
7.3.280.0090.00916.03
7.3.260.0110.01016.26
7.3.240.0060.01216.33
7.3.230.0110.00616.16
7.3.210.0080.00816.39
7.3.200.0140.00816.24
7.3.190.0090.00616.18
7.3.180.0110.00716.05
7.3.170.0100.00616.07
7.3.160.0070.01016.38
7.3.50.0140.00314.66
7.3.40.0030.00614.68
7.3.30.0040.01814.52
7.3.20.0030.01016.52
7.3.10.0140.00316.52
7.3.00.0050.00516.52
7.2.330.0120.00616.42
7.2.320.0100.00916.50
7.2.310.0030.01316.17
7.2.300.0070.01016.54
7.2.290.0070.01416.47
7.2.180.0080.01314.60
7.2.170.0050.00514.99
7.2.160.0090.00614.76
7.2.150.0090.00616.58
7.2.140.0090.01216.75
7.2.130.0080.00316.53
7.2.120.0090.01316.69
7.2.110.0080.00616.52
7.2.100.0030.01016.73
7.2.90.0070.00716.79
7.2.80.0100.00316.70
7.2.70.0080.00416.96
7.2.60.0060.02016.88
7.2.50.0120.00016.67
7.2.40.0110.00016.72
7.2.30.0000.01116.63
7.2.20.0070.00416.73
7.2.10.0100.00016.77
7.2.00.0110.00016.74
7.1.280.0030.00715.81
7.1.270.0050.00815.68
7.1.260.0060.00815.77
7.1.250.0030.01315.57

preferences:
48.89 ms | 403 KiB | 5 Q