3v4l.org

run code in 300+ PHP versions simultaneously
<?php # THIS IS VERY SERIOUS :O # BY https://twitter.com/codelytv class_alias('Text', 'T'); class_alias('ListᐸTᐳ', 'ListᐸTextᐳ'); class Text { public $value; public function __construct(string $value) { $this->value = $value; } } class ListᐸTᐳ { public $elements; public function __construct(T ...$elements) { $this->elements = $elements; } } $listOfTexts = new ListᐸTextᐳ(new Text('first element'), new Text('second element')); var_dump($listOfTexts->elements);

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.0140.00418.14
8.3.50.0110.00318.17
8.3.40.0120.00318.84
8.3.30.0070.00718.72
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.180.0110.01125.92
8.2.170.0070.01518.92
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00519.82
8.2.110.0090.00019.33
8.2.100.0090.00317.72
8.2.90.0000.00817.63
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0040.00417.63
8.2.50.0040.00418.05
8.2.40.0070.00318.09
8.2.30.0040.00418.04
8.2.20.0040.00417.99
8.2.10.0040.00419.21
8.2.00.0040.00419.23
8.1.280.0140.00025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00823.83
8.1.230.0120.00020.84
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00717.35
8.1.190.0040.00917.13
8.1.180.0060.00318.10
8.1.170.0030.00518.55
8.1.160.0040.00418.67
8.1.150.0040.00418.82
8.1.140.0030.00518.78
8.1.130.0000.00717.30
8.1.120.0000.00817.45
8.1.110.0040.00417.27
8.1.100.0000.00717.41
8.1.90.0070.00017.34
8.1.80.0030.00617.39
8.1.70.0040.00417.34
8.1.60.0000.00817.50
8.1.50.0040.00417.57
8.1.40.0040.00417.53
8.1.30.0000.00917.60
8.1.20.0000.00817.58
8.1.10.0040.00417.43
8.1.00.0030.00517.43
8.0.300.0070.00019.64
8.0.290.0000.00716.58
8.0.280.0000.00720.30
8.0.270.0050.00317.90
8.0.260.0030.00316.73
8.0.250.0000.00716.84
8.0.240.0000.00816.87
8.0.230.0070.00016.89
8.0.220.0070.00016.83
8.0.210.0070.00016.78
8.0.200.0040.00416.98
8.0.190.0030.00516.89
8.0.180.0070.00016.89
8.0.170.0080.00016.73
8.0.160.0000.00816.89
8.0.150.0070.00016.74
8.0.140.0070.00016.78
8.0.130.0050.00013.20
8.0.120.0000.00816.73
8.0.110.0040.00416.60
8.0.100.0040.00416.75
8.0.90.0040.00416.89
8.0.80.0080.01216.80
8.0.70.0040.00416.85
8.0.60.0000.00716.86
8.0.50.0000.00716.83
8.0.30.0180.00417.20
8.0.20.0140.01117.08
8.0.10.0000.00717.01
8.0.00.0100.01216.55
7.4.330.0000.00515.55
7.4.320.0030.00316.36
7.4.300.0000.00616.59
7.4.290.0030.00316.51
7.4.280.0020.00516.48
7.4.270.0000.00716.42
7.4.260.0000.00513.19
7.4.250.0000.00716.55
7.4.240.0080.00016.52
7.4.230.0070.00016.70
7.4.220.0040.00416.51
7.4.210.0030.01116.60
7.4.200.0070.00016.25
7.4.130.0130.00716.38
7.4.120.0120.01016.31
7.4.110.0090.01016.09
7.4.100.0110.00916.35
7.4.90.0110.00916.36
7.4.80.0120.00916.39
7.4.70.0120.00916.34
7.4.60.0110.01016.35
7.4.50.0110.01016.37
7.4.40.0120.00816.31
7.4.30.0110.00916.33
7.4.20.0110.01016.38
7.4.10.0120.00916.35
7.4.00.0100.01016.44
7.3.330.0000.00716.32
7.3.320.0030.00313.04
7.3.310.0030.00316.23
7.3.300.0040.00416.28
7.3.290.0090.00516.23
7.3.260.0090.00916.28
7.3.250.0120.01216.18
7.3.240.0100.01016.42
7.3.230.0120.00616.18
7.3.220.0110.00716.39
7.3.210.0120.00816.24
7.3.200.0110.00916.23
7.3.190.0130.00916.25
7.3.180.0120.00916.26
7.3.170.0120.00916.26
7.3.160.0120.00816.25
7.3.150.0110.00916.30
7.3.140.0120.00916.28
7.3.130.0110.00916.23
7.3.120.0100.01016.26
7.3.110.0120.00816.21
7.3.100.0120.00916.22
7.3.90.0120.00816.26
7.3.80.0130.00816.25
7.3.70.0130.00816.24
7.3.60.0120.00916.21
7.3.50.0120.00916.25
7.3.40.0110.00916.21
7.3.30.0110.00916.22
7.3.20.0130.01016.25
7.3.10.0150.00916.25
7.3.00.0140.00916.22
7.2.340.0130.00616.44
7.2.330.0120.01016.43
7.2.320.0110.01016.47
7.2.310.0110.00916.47
7.2.300.0100.01116.46
7.2.290.0110.00916.48
7.2.280.0110.00916.48
7.2.270.0110.01016.50
7.2.260.0120.00916.45
7.2.250.0120.00916.48
7.2.240.0110.01016.44
7.2.230.0110.01016.52
7.2.220.0120.00916.52
7.2.210.0130.00916.50
7.2.200.0110.01016.44
7.2.190.0120.01016.44
7.2.180.0120.01016.42
7.2.170.0110.01116.47
7.2.160.0110.01016.44
7.2.150.0120.01016.51
7.2.140.0120.01116.54
7.2.130.0130.00916.54
7.2.120.0150.01016.52
7.2.110.0140.00916.49
7.2.100.0120.01016.53
7.2.90.0140.01016.52
7.2.80.0140.00916.53
7.2.70.0180.01016.53
7.2.60.0140.00816.50
7.2.50.0140.00916.52
7.2.40.0140.00916.56
7.2.30.0140.00916.57
7.2.20.0120.01016.53
7.2.10.0150.00916.50
7.2.00.0120.01116.48

preferences:
64.38 ms | 401 KiB | 5 Q