3v4l.org

run code in 300+ PHP versions simultaneously
<? class ListᐸTᐳ { private $items = []; public function add(T $item) { $this->items[] = $item; } } class Listᐸstringᐳ extends ListᐸTᐳ {} $list = new Listᐸstringᐳ(); $list->add('Foo');

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.0100.01316.50
8.3.50.0040.01116.23
8.3.40.0100.00318.43
8.3.30.0110.00418.59
8.3.20.0040.00420.21
8.3.10.0030.00621.64
8.3.00.0040.00417.47
8.2.180.0150.00018.18
8.2.170.0150.00022.96
8.2.160.0100.00320.24
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00021.17
8.2.120.0070.00026.35
8.2.110.0100.00721.00
8.2.100.0040.00817.91
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0050.00320.47
8.2.30.0000.00719.10
8.2.20.0050.00517.86
8.2.10.0040.00417.97
8.2.00.0070.00017.91
8.1.280.0060.00925.92
8.1.270.0100.00022.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00319.22
8.1.230.0060.00618.93
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0080.00018.59
8.1.160.0000.00718.98
8.1.150.0030.00318.75
8.1.140.0000.00719.34
8.1.130.0000.00718.65
8.1.120.0030.00317.30
8.1.110.0030.00717.22
8.1.100.0050.00317.20
8.1.90.0040.00417.33
8.1.80.0000.00717.23
8.1.70.0070.00017.33
8.1.60.0040.00417.46
8.1.50.0040.00417.37
8.1.40.0040.00417.38
8.1.30.0000.00717.36
8.1.20.0000.00717.42
8.1.10.0090.00017.38
8.1.00.0000.00717.34
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00318.23
8.0.270.0040.00417.13
8.0.260.0000.00616.75
8.0.250.0030.00316.81
8.0.240.0040.00416.78
8.0.230.0000.00916.74
8.0.220.0000.00716.78
8.0.210.0030.00316.65
8.0.200.0000.00616.70
8.0.190.0040.00416.80
8.0.180.0040.00416.68
8.0.170.0040.00416.66
8.0.160.0030.00516.80
8.0.150.0040.00416.72
8.0.140.0040.00316.64
8.0.130.0060.00013.40
8.0.120.0050.00316.63
8.0.110.0070.00016.63
8.0.100.0050.00216.80
8.0.90.0080.00016.86
8.0.80.0060.01616.75
8.0.70.0030.00316.58
8.0.60.0000.00716.70
8.0.50.0050.00316.86
8.0.30.0140.00916.91
8.0.20.0110.00717.40
8.0.10.0000.00716.74
8.0.00.0150.00616.72
7.4.330.0000.00515.55
7.4.320.0000.00816.38
7.4.300.0030.00316.37
7.4.290.0030.00316.37
7.4.280.0080.00016.46
7.4.270.0050.00216.37
7.4.260.0000.00716.36
7.4.250.0000.00816.23
7.4.240.0030.00316.38
7.4.230.0000.00716.56
7.4.220.0060.01316.48
7.4.210.0100.00616.38
7.4.200.0000.00716.16
7.4.160.0050.01116.35
7.4.150.0110.00617.40
7.4.140.0100.01117.86
7.4.130.0130.00716.26
7.4.120.0080.01116.40
7.4.110.0110.00716.33
7.4.100.0120.00616.38
7.4.90.0080.00816.43
7.4.80.0100.01319.39
7.4.70.0130.00316.30
7.4.60.0060.01016.16
7.4.50.0000.01616.40
7.4.40.0140.00716.46
7.4.30.0080.00816.39
7.4.00.0120.00415.01
7.3.330.0060.00013.29
7.3.320.0030.00313.46
7.3.310.0070.00016.20
7.3.300.0070.00016.12
7.3.290.0070.00916.16
7.3.280.0060.00916.13
7.3.270.0160.00317.40
7.3.260.0120.00816.33
7.3.250.0140.00716.38
7.3.240.0110.00816.30
7.3.230.0000.01816.39
7.3.210.0130.00316.15
7.3.200.0060.00916.48
7.3.190.0080.00816.43
7.3.180.0110.00616.10
7.3.170.0100.00816.08
7.3.160.0120.00316.45
7.2.330.0070.01016.28
7.2.320.0100.00716.55
7.2.310.0070.01016.23
7.2.300.0140.00316.65
7.2.290.0100.00716.34
7.2.60.0040.01117.00
7.2.00.0000.01219.39
7.1.200.0040.00415.62
7.1.100.0040.00717.71
7.1.70.0030.01217.09
7.1.60.0220.01335.10
7.1.50.0180.00934.63
7.1.40.0230.01234.36
7.1.30.0250.01134.41
7.1.20.0290.00634.66
7.1.10.0100.00716.29
7.1.00.0050.01016.61
7.0.200.0040.01016.60
7.0.190.0060.01016.52
7.0.180.0040.01216.20
7.0.170.0040.01316.09
7.0.160.0030.01116.06
7.0.150.0030.01316.33
7.0.140.0030.01316.28
7.0.130.0130.00916.29
7.0.120.0030.01316.48
7.0.110.0090.00916.10
7.0.100.0100.00716.19
7.0.90.0050.01216.21
7.0.80.0100.00716.17
7.0.70.0100.00616.31
7.0.60.0000.01615.89
7.0.50.0000.01216.37
7.0.40.0070.00916.46
7.0.30.0100.00316.27
7.0.20.0060.00916.02
7.0.10.0060.01016.30
7.0.00.0000.01516.18

preferences:
55.51 ms | 401 KiB | 5 Q