3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids1 = []; function foo(array $ids) { echo(addslashes('{"ordinal":{"suffix":"{lastDigit, plural, =1 {st} =2 {nd} =3 {rd} other {th}}"},"separators":{"decimalPoint":".","thousandGroup":","},"postfixes":{"thousands":"K","millions":"M","billions":"B"}}')); } foo($ids1);

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.60.0120.00616.36
8.3.50.0070.00719.98
8.3.40.0090.00920.22
8.3.30.0040.01118.60
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0070.01025.92
8.2.170.0090.00618.83
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00726.16
8.2.110.0050.00521.00
8.2.100.0060.00617.72
8.2.90.0080.00017.91
8.2.80.0000.00819.16
8.2.70.0050.00317.50
8.2.60.0050.00317.63
8.2.50.0050.00317.55
8.2.40.0040.00419.35
8.2.30.0080.00018.15
8.2.20.0040.00419.11
8.2.10.0000.00717.98
8.2.00.0040.00419.23
8.1.280.0090.00625.92
8.1.270.0030.00624.66
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00922.14
8.1.230.0060.00620.99
8.1.220.0080.00017.77
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0000.00917.10
8.1.180.0050.00318.10
8.1.170.0070.00017.76
8.1.160.0000.00818.72
8.1.150.0050.00218.52
8.1.140.0070.00017.44
8.1.130.0000.00718.84
8.1.120.0050.00317.42
8.1.110.0040.00417.26
8.1.100.0040.00717.33
8.1.90.0080.00017.25
8.1.80.0090.00317.29
8.1.70.0060.01117.32
8.1.60.0100.00517.38
8.1.50.0140.00017.39
8.1.40.0120.00617.39
8.1.30.0090.00617.60
8.1.20.0110.00317.55
8.1.10.0140.00317.28
8.1.00.0120.00317.22
8.0.300.0040.00420.08
8.0.290.0040.00416.75
8.0.280.0050.00218.48
8.0.270.0000.00716.71
8.0.260.0030.00318.41
8.0.250.0000.00716.93
8.0.240.0030.00316.94
8.0.230.0080.00316.71
8.0.220.0070.00716.77
8.0.210.0130.00316.56
8.0.200.0100.00516.70
8.0.190.0090.00616.65
8.0.180.0080.00816.76
8.0.170.0110.00416.65
8.0.160.0120.00216.67
8.0.150.0050.01016.71
8.0.140.0110.00416.59
8.0.130.0120.00316.55
8.0.120.0100.00316.63
8.0.110.0150.00016.76
8.0.100.0100.00616.75
8.0.90.0110.00516.73
8.0.80.0100.00716.73
8.0.70.0100.00716.59
8.0.60.0120.00316.54
8.0.50.0110.00416.71
8.0.30.0120.00416.71
8.0.20.0040.01116.70
8.0.10.0120.00316.81
7.4.330.0050.00015.55
7.4.320.0070.00016.47
7.4.300.0130.00616.36
7.4.290.0110.00716.26
7.4.280.0130.00716.43
7.4.270.0070.01116.43
7.4.260.0040.01216.34
7.4.250.0070.01016.31
7.4.240.0000.01716.34
7.4.230.0110.00816.52
7.4.220.0130.00316.55
7.4.210.0150.00016.34
7.4.200.0070.00716.32
7.4.190.0100.00516.50
7.4.180.0100.00616.49
7.4.160.0120.00416.45
7.4.150.0100.00516.45
7.4.140.0120.00316.38
7.4.130.0110.00416.50
7.4.120.0090.00616.36
7.4.110.0160.00016.39
7.4.100.0140.00216.54
7.4.90.0100.00316.46
7.4.80.0070.00616.41
7.4.70.0090.00016.45
7.4.60.0110.00016.23
7.4.50.0080.00516.13
7.4.40.0090.00416.32
7.4.30.0000.00816.37
7.4.20.0000.00616.38
7.4.10.0070.00016.37
7.4.00.0050.00216.41

preferences:
53.13 ms | 401 KiB | 5 Q