3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Foo { private $foo; public function __construct(string $foo) { $this->foo = $foo; } public function getFoo(): string { return $this->foo; } } $foo = new Foo('bar'); var_dump($foo->getFoo()); $foo->__construct('baz'); var_dump($foo->getFoo());

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.41
8.3.50.0110.00719.19
8.3.40.0120.00318.66
8.3.30.0150.00018.84
8.3.20.0080.00020.95
8.3.10.0000.00723.51
8.3.00.0080.00020.87
8.2.180.0120.00318.31
8.2.170.0110.00418.84
8.2.160.0100.00322.96
8.2.150.0050.00224.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.05
8.2.110.0080.00322.19
8.2.100.0070.00717.59
8.2.90.0030.00617.63
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0070.00018.16
8.2.50.0000.00918.10
8.2.40.0050.00319.35
8.2.30.0040.00419.33
8.2.20.0050.00318.02
8.2.10.0040.00419.24
8.2.00.0080.00017.99
8.1.280.0120.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00521.99
8.1.230.0060.00620.89
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0090.00318.82
8.1.180.0040.00418.10
8.1.170.0030.00618.58
8.1.160.0050.00318.83
8.1.150.0000.00718.80
8.1.140.0000.00819.03
8.1.130.0040.00417.34
8.1.120.0040.00317.39
8.1.110.0070.00017.43
8.1.100.0080.00417.42
8.1.90.0070.00417.41
8.1.80.0050.00317.43
8.1.70.0040.00417.45
8.1.60.0060.00317.64
8.1.50.0050.00317.52
8.1.40.0060.00317.52
8.1.30.0040.00417.62
8.1.20.0030.00617.52
8.1.10.0050.00317.54
8.1.00.0000.00817.47
8.0.300.0050.00221.52
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0030.00616.78
8.0.260.0070.00016.77
8.0.250.0020.00516.95
8.0.240.0040.00416.80
8.0.230.0060.00316.89
8.0.220.0030.00316.87
8.0.210.0000.00716.75
8.0.200.0000.00716.91
8.0.190.0030.00516.82
8.0.180.0040.00416.75
8.0.170.0000.00816.84
8.0.160.0040.00416.90
8.0.150.0000.00816.83
8.0.140.0030.00316.83
8.0.130.0060.00013.31
8.0.120.0000.00716.80
8.0.110.0070.00016.84
8.0.100.0000.00716.89
8.0.90.0050.00216.71
8.0.80.0110.00616.84
8.0.70.0040.00416.80
8.0.60.0040.00416.73
8.0.50.0050.00316.95
8.0.30.0120.00716.75
8.0.20.0130.01317.19
8.0.10.0070.00016.97
8.0.00.0100.00716.75
7.4.330.0000.00616.70
7.4.320.0030.00316.44
7.4.300.0000.00616.66
7.4.290.0030.00716.42
7.4.280.0030.00616.60
7.4.270.0030.00316.50
7.4.260.0030.00516.62
7.4.250.0040.00416.59
7.4.240.0000.00716.55
7.4.230.0000.00716.70
7.4.220.0080.00016.62
7.4.210.0090.00916.53
7.4.200.0030.00316.59
7.4.160.0070.01216.54
7.4.140.0040.01217.86
7.4.130.0120.00616.33
7.4.120.0110.00716.52
7.4.110.0150.00916.57
7.4.100.0100.00816.44
7.4.90.0060.01316.40
7.4.80.0080.01119.39
7.4.70.0120.00916.48
7.4.60.0000.02316.46
7.4.50.0110.00716.25
7.4.40.0080.01116.53
7.4.00.0070.00914.95
7.3.330.0020.00213.28
7.3.320.0030.00313.02
7.3.310.0000.00716.13
7.3.300.0030.00316.17
7.3.290.0000.00616.25
7.3.280.0090.01016.20
7.3.260.0100.00816.27
7.3.240.0080.00916.30
7.3.230.0060.01216.59
7.3.210.0030.01416.52
7.3.200.0060.01216.29
7.3.190.0030.01316.12
7.3.180.0100.01316.30
7.3.170.0130.00316.31
7.3.160.0060.00916.55
7.3.120.0040.01414.68
7.3.110.0130.00414.56
7.3.100.0110.00314.69
7.3.90.0050.00614.59
7.3.80.0070.00614.67
7.3.70.0040.00814.84
7.3.60.0080.00614.75
7.3.50.0010.01114.54
7.3.40.0080.00614.59
7.3.30.0090.00814.59
7.3.20.0090.00616.27
7.3.10.0080.00916.20
7.3.00.0080.00816.23
7.2.330.0090.00916.53
7.2.320.0030.01516.64
7.2.310.0140.00316.73
7.2.300.0120.00616.47
7.2.290.0110.00716.50
7.2.250.0100.00915.13
7.2.240.0070.00914.95
7.2.230.0090.00815.04
7.2.220.0100.00514.87
7.2.210.0050.01114.73
7.2.200.0070.00814.97
7.2.190.0060.00914.96
7.2.180.0000.01314.95
7.2.170.0090.00814.88
7.2.160.0100.00714.80
7.2.150.0130.00816.46
7.2.140.0100.00816.53
7.2.130.0100.00716.55
7.2.120.0090.00816.50
7.2.110.0130.00616.53
7.2.100.0090.00616.49
7.2.90.0080.00816.52
7.2.80.0090.00816.53
7.2.70.0100.00716.58
7.2.60.0090.00716.58
7.2.50.0080.00716.50
7.2.40.0080.00816.58
7.2.30.0090.00816.57
7.2.20.0070.01016.61
7.2.10.0090.00716.58
7.2.00.0060.00916.52
7.1.330.0040.00815.73
7.1.320.0050.00615.68
7.1.310.0070.00815.66
7.1.300.0080.00615.69
7.1.290.0050.00915.80
7.1.280.0080.00615.43
7.1.270.0080.00715.41
7.1.260.0070.00815.46
7.1.250.0090.00815.38

preferences:
65.8 ms | 401 KiB | 5 Q