3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'k1' => 0, 'k2' => 1, 'k3' => 0, 'k4' => 0, 'k5' => 3, 'k6' => 0, 'k7' => 4, 'k8' => 0, 'k9' => 0, 'k10' => 0, 'k11' => 0, 'k12' => 0, 'k13' => 0, 'k14' => 0, 'k15' => 0, 'k16' => 0, 'k17' => 0, ]; asort($arr); 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.10.0150.00417.64
8.3.140.0040.00418.73
8.3.130.0040.00418.42
8.3.120.0030.00718.77
8.3.110.0040.00420.94
8.3.100.0090.00018.27
8.3.90.0090.00926.77
8.3.80.0090.00018.55
8.3.70.0110.00716.75
8.3.60.0070.01118.29
8.3.50.0070.00724.37
8.3.40.0150.00020.21
8.3.30.0040.01118.59
8.3.20.0070.00320.73
8.3.10.0080.00020.35
8.3.00.0000.00822.52
8.2.250.0030.00516.71
8.2.240.0060.01016.97
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0050.00516.63
8.2.190.0120.00316.63
8.2.180.0180.00316.75
8.2.170.0100.01020.57
8.2.160.0060.00819.30
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0000.00820.81
8.2.110.0140.00720.99
8.2.100.0030.00917.78
8.2.90.0060.00617.50
8.2.80.0040.00418.61
8.2.70.0000.00817.50
8.2.60.0030.00517.50
8.2.50.0030.00617.92
8.2.40.0000.00817.89
8.2.30.0040.00419.05
8.2.20.0000.00718.00
8.2.10.0000.00719.10
8.2.00.0000.00719.09
8.1.300.0060.00318.39
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0040.00422.34
8.1.260.0090.00028.09
8.1.250.0080.00028.09
8.1.240.0090.00319.10
8.1.230.0080.00419.20
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.22
8.1.190.0030.00617.23
8.1.180.0000.01118.10
8.1.170.0070.00017.62
8.1.160.0040.00418.97
8.1.150.0070.00018.80
8.1.140.0060.00320.65
8.1.130.0000.00717.39
8.1.120.0000.00717.41
8.1.110.0080.00017.42
8.1.100.0080.00017.40
8.1.90.0000.00717.30
8.1.80.0050.00317.43
8.1.70.0030.00317.26
8.1.60.0000.00717.53
8.1.50.0060.00317.44
8.1.40.0000.00817.46
8.1.30.0030.00517.58
8.1.20.0000.00817.59
8.1.10.0110.00517.40
8.1.00.0080.00917.40
8.0.300.0080.00019.69
8.0.290.0000.00816.75
8.0.280.0070.00018.30
8.0.270.0000.00716.76
8.0.260.0000.00716.69
8.0.250.0000.00716.94
8.0.240.0030.00616.99
8.0.230.0070.00016.96
8.0.220.0000.00716.75
8.0.210.0000.00716.94
8.0.200.0000.00816.89
8.0.190.0070.00016.89
8.0.180.0040.00416.83
8.0.170.0040.00416.73
8.0.160.0050.00316.71
8.0.150.0040.00416.84
8.0.140.0030.00516.77
8.0.130.0100.00315.04
8.0.120.0080.00716.80
8.0.110.0060.00516.72
8.0.100.0130.00216.82
8.0.90.0130.00216.80
8.0.80.0090.01016.76
8.0.70.0080.00516.74
8.0.60.0080.00516.79
8.0.50.0070.00316.67
8.0.30.0040.01016.94
8.0.20.0060.01116.87
8.0.10.0110.00616.83
8.0.00.0070.00916.89
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0040.00416.52
7.4.290.0030.00316.55
7.4.280.0080.00016.50
7.4.270.0100.00316.45
7.4.260.0120.00414.80
7.4.250.0130.00516.42
7.4.240.0110.00216.51
7.4.230.0090.00616.40
7.4.220.0060.00716.50
7.4.210.0100.00716.48
7.4.200.0130.00116.27
7.4.190.0140.00516.56
7.4.180.0150.00616.57
7.4.160.0110.00616.49
7.4.150.0140.00416.45
7.4.140.0030.01416.30
7.4.130.0100.00716.40
7.4.120.0110.00716.38
7.4.110.0120.00716.39
7.4.100.0110.00816.34
7.4.90.0160.00516.38
7.4.80.0150.00716.33
7.4.70.0120.00916.30
7.4.60.0120.01016.29
7.4.50.0120.00916.29
7.4.40.0120.01016.29
7.4.30.0110.01016.31
7.4.20.0120.00916.32
7.4.10.0110.01016.30
7.4.00.0100.01016.36
7.3.330.0100.00216.23
7.3.320.0060.00314.58
7.3.310.0120.00216.19
7.3.300.0150.00016.05
7.3.290.0080.00316.08
7.3.280.0100.00716.14
7.3.270.0060.00716.14
7.3.260.0100.00916.09
7.3.250.0090.00516.02
7.3.240.0110.00916.06
7.3.230.0120.00716.20
7.3.220.0100.00516.08
7.3.210.0130.00716.28
7.3.200.0180.00716.06
7.3.190.0120.01016.18
7.3.180.0130.00916.17
7.3.170.0120.00916.19
7.3.160.0120.00916.21
7.3.150.0120.01016.17
7.3.140.0110.00916.15
7.3.130.0110.00916.18
7.3.120.0120.00816.20
7.3.110.0100.01016.17
7.3.100.0110.00916.13
7.3.90.0110.00916.19
7.3.80.0120.00916.17
7.3.70.0110.00816.15
7.3.60.0100.00916.15
7.3.50.0110.00916.17
7.3.40.0100.00916.12
7.3.30.0100.00916.13
7.3.20.0130.00916.27
7.3.10.0120.00916.26
7.3.00.0120.00916.27
7.2.340.0190.01016.20
7.2.330.0190.01016.27
7.2.320.0180.00816.23
7.2.310.0130.01016.32
7.2.300.0130.01016.32
7.2.290.0110.01016.33
7.2.280.0120.00916.30
7.2.270.0120.01016.29
7.2.260.0110.01016.33
7.2.250.0110.01016.31
7.2.240.0110.01016.33
7.2.230.0110.01016.32
7.2.220.0110.01016.32
7.2.210.0120.00916.29
7.2.200.0120.00916.30
7.2.190.0120.00916.28
7.2.180.0110.01016.29
7.2.170.0110.00916.26
7.2.160.0110.01016.29
7.2.150.0130.00916.46
7.2.140.0120.01116.47
7.2.130.0130.00916.45
7.2.120.0130.00916.45
7.2.110.0140.01016.47
7.2.100.0120.01116.46
7.2.90.0130.00916.47
7.2.80.0120.01116.43
7.2.70.0120.01016.45
7.2.60.0120.00916.42
7.2.50.0110.01116.44
7.2.40.0120.01016.49
7.2.30.0130.01016.52
7.2.20.0120.01016.46
7.2.10.0120.01016.46
7.2.00.0110.01016.46

preferences:
42.06 ms | 403 KiB | 5 Q