3v4l.org

run code in 300+ PHP versions simultaneously
<? class ListᐸTᐳ { private $items = []; public function add(T $item) { $this->items[] = $item; } } $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.70.0060.01616.38
8.3.60.0180.00716.63
8.3.50.0080.01017.18
8.3.40.0070.00718.42
8.3.30.0110.00418.42
8.3.20.0090.00020.02
8.3.10.0030.00523.70
8.3.00.0000.00817.56
8.2.180.0040.01118.29
8.2.170.0060.00922.96
8.2.160.0000.01320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00021.12
8.2.120.0040.00426.35
8.2.110.0070.00322.18
8.2.100.0040.00818.14
8.2.90.0060.00319.16
8.2.80.0060.00317.97
8.2.70.0000.00817.91
8.2.60.0030.00518.16
8.2.50.0060.00318.10
8.2.40.0030.00620.72
8.2.30.0040.00419.17
8.2.20.0030.00717.98
8.2.10.0040.00418.02
8.2.00.0080.00017.98
8.1.280.0060.00925.92
8.1.270.0030.00521.94
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.73
8.1.230.0060.00620.88
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00717.10
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0050.00318.40
8.1.160.0000.00718.84
8.1.150.0040.00418.77
8.1.140.0030.00319.35
8.1.130.0000.00718.74
8.1.120.0000.00817.19
8.1.110.0040.00417.21
8.1.100.0030.00817.29
8.1.90.0000.00817.34
8.1.80.0000.00717.22
8.1.70.0000.00717.21
8.1.60.0060.00317.34
8.1.50.0000.00817.38
8.1.40.0000.00817.27
8.1.30.0000.00717.51
8.1.20.0000.00717.53
8.1.10.0000.00817.36
8.1.00.0000.00717.27
8.0.300.0060.00619.36
8.0.290.0000.00816.63
8.0.280.0000.00718.38
8.0.270.0090.00017.16
8.0.260.0000.00616.78
8.0.250.0000.00716.87
8.0.240.0070.00016.72
8.0.230.0030.00616.82
8.0.220.0070.00016.74
8.0.210.0000.00716.74
8.0.200.0030.00316.81
8.0.190.0090.00016.83
8.0.180.0040.00416.73
8.0.170.0050.00216.73
8.0.160.0040.00416.79
8.0.150.0000.00816.60
8.0.140.0030.00316.64
8.0.130.0070.00013.32
8.0.120.0030.00716.61
8.0.110.0000.00816.79
8.0.100.0050.00216.66
8.0.90.0070.00016.61
8.0.80.0080.00816.72
8.0.70.0040.00416.61
8.0.60.0040.00416.64
8.0.50.0000.00816.73
8.0.30.0070.01116.91
8.0.20.0110.00817.40
8.0.10.0030.00316.86
8.0.00.0100.01016.59
7.4.330.0000.00515.55
7.4.320.0070.00016.43
7.4.300.0000.00716.37
7.4.290.0070.00016.27
7.4.280.0040.00416.47
7.4.270.0000.00816.34
7.4.260.0040.00416.48
7.4.250.0030.00516.31
7.4.240.0000.00716.45
7.4.230.0000.00716.46
7.4.220.0140.00716.41
7.4.210.0030.01416.49
7.4.200.0070.00016.49
7.4.160.0050.01216.30
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0170.00916.48
7.4.120.0120.00716.40
7.4.110.0090.01216.32
7.4.100.0070.01016.31
7.4.90.0130.00316.37
7.4.80.0130.00719.39
7.4.70.0080.00816.41
7.4.60.0070.01416.52
7.4.50.0040.01116.42
7.4.40.0070.01416.43
7.4.30.0100.00616.32
7.4.00.0110.00414.87
7.3.330.0000.00713.33
7.3.320.0000.00513.29
7.3.310.0030.00316.21
7.3.300.0040.00416.13
7.3.290.0060.01016.12
7.3.280.0070.01016.10
7.3.270.0070.01017.40
7.3.260.0120.00516.42
7.3.250.0100.01116.26
7.3.240.0100.00716.18
7.3.230.0080.00816.44
7.3.210.0130.00316.27
7.3.200.0110.00416.17
7.3.190.0110.00316.17
7.3.180.0060.01016.52
7.3.170.0120.00416.30
7.3.160.0090.00916.18
7.3.120.0060.01014.69
7.3.110.0090.00914.69
7.3.100.0030.00814.71
7.3.90.0060.00814.87
7.3.80.0070.00714.60
7.3.70.0050.00614.74
7.3.60.0040.00914.68
7.3.50.0110.00214.71
7.3.40.0030.01114.73
7.3.30.0060.00714.70
7.3.20.0120.00116.43
7.3.10.0080.00616.44
7.3.00.0040.00816.61
7.2.330.0030.01316.43
7.2.320.0130.00316.55
7.2.310.0100.00716.55
7.2.300.0170.00016.59
7.2.290.0090.00916.37
7.2.250.0030.01414.97
7.2.240.0050.01315.10
7.2.230.0050.00914.61
7.2.220.0080.00814.91
7.2.210.0020.01214.87
7.2.200.0080.00514.97
7.2.190.0050.01214.86
7.2.180.0100.00815.03
7.2.170.0060.00814.97
7.2.60.0090.00016.48
7.2.00.0060.00919.30
7.1.330.0050.01115.52
7.1.320.0110.00315.47
7.1.310.0070.00815.63
7.1.300.0070.00615.41
7.1.290.0030.00815.61
7.1.280.0050.00915.65
7.1.270.0050.00715.71
7.1.260.0020.01115.66
7.1.200.0130.00015.65
7.1.100.0000.01118.03
7.1.70.0060.00917.19
7.1.60.0240.00635.09
7.1.50.0220.01334.77
7.1.40.0260.01334.24
7.1.30.0270.01234.31
7.1.20.0180.01834.64
7.1.10.0030.01416.30
7.1.00.0090.00916.48
7.0.200.0070.00916.57
7.0.190.0070.01016.48
7.0.180.0060.01316.20
7.0.170.0060.01216.11
7.0.160.0060.01116.09
7.0.150.0140.00416.04
7.0.140.0040.01216.24
7.0.130.0040.01216.40
7.0.120.0060.00816.29
7.0.110.0100.00716.09
7.0.100.0070.01016.21
7.0.90.0060.00916.30
7.0.80.0060.01216.12
7.0.70.0070.00716.10
7.0.60.0050.00815.91
7.0.50.0030.01416.37
7.0.40.0060.01016.24
7.0.30.0070.01416.08
7.0.20.0070.00716.16
7.0.10.0060.00916.29
7.0.00.0070.01016.17

preferences:
47.88 ms | 401 KiB | 5 Q