3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'Light Blue1', 'Blue2', 'Blue1', 'Black3', 'Black12', 'Black2' ]; natsort($data); $result = []; foreach ($data as $value) { $result[rtrim($value, '0..9')] = $value; } var_export(array_values($result));

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.130.0100.00517.48
8.4.120.0060.00520.65
8.4.110.0160.00522.80
8.4.100.0140.00717.54
8.4.90.0150.00617.57
8.4.80.0040.00517.71
8.4.70.0090.00717.61
8.4.60.0140.00720.16
8.4.50.0120.00723.84
8.4.40.0130.00717.54
8.4.30.0080.00820.42
8.4.20.0170.00317.89
8.4.10.0070.01023.62
8.3.260.0130.00616.50
8.3.250.0080.01019.04
8.3.240.0130.00616.73
8.3.230.0110.00816.40
8.3.220.0050.00417.06
8.3.210.0120.00616.62
8.3.200.0040.00516.72
8.3.190.0140.00717.13
8.3.180.0100.00918.45
8.3.170.0070.00316.41
8.3.160.0070.01016.53
8.3.150.0070.01117.27
8.3.140.0030.00617.11
8.3.130.0000.00816.57
8.3.120.0040.00420.63
8.3.110.0060.00316.63
8.3.100.0030.00724.06
8.3.90.0150.00426.77
8.3.80.0000.01016.38
8.3.70.0160.00616.75
8.3.60.0090.00618.43
8.3.50.0140.00319.84
8.3.40.0030.01020.10
8.3.30.0070.01019.04
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0070.00026.16
8.2.290.0050.00320.64
8.2.280.0110.01118.24
8.2.270.0120.00816.71
8.2.260.0110.00420.53
8.2.250.0100.01016.57
8.2.240.0060.00319.06
8.2.230.0040.00820.94
8.2.220.0050.00337.54
8.2.210.0040.00426.77
8.2.200.0090.00016.38
8.2.190.0110.00716.58
8.2.180.0080.00825.92
8.2.170.0090.00618.91
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.96
8.2.110.0070.00319.33
8.2.100.0090.00317.78
8.2.90.0000.00817.75
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00417.50
8.2.50.0050.00317.98
8.2.40.0080.00018.16
8.2.30.0000.00818.12
8.2.20.0070.00020.43
8.2.10.0070.00018.16
8.2.00.0000.00719.41
8.1.330.0120.00718.74
8.1.320.0150.00416.33
8.1.310.0110.00716.61
8.1.300.0030.00916.13
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0040.00422.17
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0050.00519.44
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00817.23
8.1.180.0050.00318.10
8.1.170.0030.00617.62
8.1.160.0000.00818.90
8.1.150.0040.00418.63
8.1.140.0000.00717.39
8.1.130.0030.00318.89
8.1.120.0100.00017.46
8.1.110.0030.00517.39
8.1.100.0040.00417.47
8.1.90.0000.00717.45
8.1.80.0030.00317.34
8.1.70.0070.00017.36
8.1.60.0070.00717.43
8.1.50.0080.00417.48
8.1.40.0070.00517.42
8.1.30.0060.00617.56
8.1.20.0000.01217.61
8.1.10.0090.00317.50
8.1.00.0040.00917.43
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.50
8.0.270.0000.00716.70
8.0.260.0030.00318.36
8.0.250.0080.00016.97
8.0.240.0030.00316.96
8.0.230.0040.00716.97
8.0.220.0030.00316.91
8.0.210.0000.00716.93
8.0.200.0030.00316.94
8.0.190.0000.01016.91
8.0.180.0070.00516.84
8.0.170.0080.00816.80
8.0.160.0000.01416.72
8.0.150.0030.00816.84
8.0.140.0110.00016.73
8.0.130.0090.00316.63
8.0.120.0030.00816.68
8.0.110.0030.00816.82
8.0.100.0120.00216.82
8.0.90.0110.00316.78
8.0.80.0060.00916.71
8.0.70.0150.00016.73
8.0.60.0140.00016.68
8.0.50.0150.00016.76
8.0.30.0060.00916.84
8.0.20.0100.00616.76
8.0.10.0060.00616.85
7.4.330.0050.00015.55
7.4.320.0060.00016.50
7.4.300.0030.00316.47
7.4.290.0050.00516.43
7.4.280.0040.00416.55
7.4.270.0110.00016.39
7.4.260.0120.00516.41
7.4.250.0080.00816.36
7.4.240.0090.00616.31
7.4.230.0060.00616.33
7.4.220.0030.00916.54
7.4.210.0000.00916.35
7.4.200.0030.00316.43
7.4.190.0000.00716.50
7.4.180.0000.00816.58
7.4.160.0120.00016.52
7.4.150.0040.00416.54
7.4.140.0050.00316.48
7.4.130.0050.00516.47
7.4.120.0050.00516.36
7.4.110.0060.00416.38
7.4.100.0090.00416.24
7.4.90.0060.00616.27
7.4.80.0000.00916.42
7.4.70.0130.00016.35
7.4.60.0090.00416.18
7.4.50.0000.01216.31
7.4.40.0070.00416.29
7.4.30.0070.00416.29
7.4.20.0040.00416.41
7.4.10.0020.00616.21
7.4.00.0050.00516.46

preferences:
28.06 ms | 403 KiB | 5 Q