3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'oh yea'; public function foo() { return new class { protected function bar() { return $this->bar; } }; } } var_dump((new Foo)->foo()->bar());

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.0110.00416.75
8.3.50.0170.00421.22
8.3.40.0090.00618.70
8.3.30.0070.00718.84
8.3.20.0000.01420.34
8.3.10.0040.00423.65
8.3.00.0060.00319.66
8.2.180.0090.00916.50
8.2.170.0070.01022.96
8.2.160.0100.00720.23
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.83
8.2.110.0000.00922.08
8.2.100.0080.00417.75
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.78
8.2.50.0080.00018.07
8.2.40.0050.00319.11
8.2.30.0020.00517.98
8.2.20.0000.00717.61
8.2.10.0040.00418.11
8.2.00.0000.00718.15
8.1.280.0100.00325.92
8.1.270.0130.00720.32
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0070.00319.13
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0040.00421.92
8.1.150.0080.00018.72
8.1.140.0080.00017.30
8.1.130.0040.00417.63
8.1.120.0030.00517.38
8.1.110.0050.00317.31
8.1.100.0030.00317.35
8.1.90.0000.00917.41
8.1.80.0050.00217.32
8.1.70.0000.00717.34
8.1.60.0030.00617.50
8.1.50.0060.00317.34
8.1.40.0030.00617.44
8.1.30.0070.00517.66
8.1.20.0080.00017.56
8.1.10.0000.01017.52
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00717.25
8.0.260.0000.00717.16
8.0.250.0040.00417.00
8.0.240.0070.00016.98
8.0.230.0030.00716.89
8.0.220.0040.00416.97
8.0.210.0030.00316.88
8.0.200.0040.00417.05
8.0.190.0030.00317.07
8.0.180.0090.00317.02
8.0.170.0050.00316.91
8.0.160.0040.00417.00
8.0.150.0040.00417.00
8.0.140.0040.00416.93
8.0.130.0030.00313.34
8.0.120.0080.00016.80
8.0.110.0040.00416.96
8.0.100.0070.00017.00
8.0.90.0030.00516.90
8.0.80.0030.01216.91
8.0.70.0000.00816.76
8.0.60.0030.00316.98
8.0.50.0030.00516.82
8.0.30.0100.00817.14
8.0.20.0120.01317.40
8.0.10.0040.00417.02
8.0.00.0070.01316.85
7.4.330.0050.00015.08
7.4.320.0000.00616.52
7.4.300.0040.00416.48
7.4.290.0000.00816.50
7.4.280.0040.00416.43
7.4.270.0000.00716.46
7.4.260.0070.00016.38
7.4.250.0000.00716.55
7.4.240.0020.00616.54
7.4.230.0050.00316.34
7.4.220.0090.00916.64
7.4.210.0060.00916.53
7.4.200.0030.00316.33
7.4.160.0100.00616.62
7.4.150.0160.00917.40
7.4.140.0070.01017.86
7.4.130.0100.01016.47
7.4.120.0080.01116.41
7.4.110.0100.00716.26
7.4.100.0090.00916.51
7.4.90.0100.00716.52
7.4.80.0090.00619.39
7.4.70.0110.00616.50
7.4.60.0100.01016.52
7.4.50.0030.00516.45
7.4.40.0060.01316.40
7.4.30.0070.01016.72
7.4.00.0060.00615.13
7.3.330.0000.00513.35
7.3.320.0000.00513.30
7.3.310.0070.00016.25
7.3.300.0060.00016.36
7.3.290.0040.00416.35
7.3.280.0070.00816.34
7.3.270.0090.00917.40
7.3.260.0090.00916.55
7.3.250.0080.01016.31
7.3.240.0090.00916.36
7.3.230.0140.00716.52
7.3.210.0130.00316.41
7.3.200.0130.00316.40
7.3.190.0050.01116.57
7.3.180.0060.00916.34
7.3.170.0110.01116.57
7.3.160.0120.00316.41
7.2.330.0040.01416.41
7.2.320.0100.00716.67
7.2.310.0040.01416.67
7.2.300.0090.00916.79
7.2.290.0150.00916.68
7.2.60.0060.00716.81
7.2.00.0000.01219.25
7.1.200.0000.01115.80
7.1.100.0000.01117.85
7.1.70.0040.00416.80
7.1.60.0070.01719.13
7.1.50.0210.01434.77
7.1.00.0070.07322.45
7.0.200.0000.00716.54
7.0.60.0100.08019.98
7.0.50.0100.03317.89
7.0.40.0070.08320.11
7.0.30.0530.07020.16
7.0.20.0330.07720.16
7.0.10.0070.08020.09
7.0.00.0100.06320.09
5.6.280.0030.03721.04
5.6.210.0100.06720.77
5.6.200.0000.06018.18
5.6.190.0100.06720.63
5.6.180.3570.05020.79
5.6.170.0070.05020.46
5.6.160.0030.04320.57
5.6.150.0100.07718.19
5.6.140.0100.03718.14
5.6.130.0070.05318.25
5.6.120.0100.08020.96
5.6.110.0000.09020.96
5.6.100.0130.07721.14
5.6.90.0070.08320.99
5.6.80.0130.08020.39
5.6.70.2800.03320.42
5.5.350.0170.03720.37
5.5.340.0100.07718.04
5.5.330.0030.04320.28
5.5.320.0370.07720.29
5.5.310.0270.06020.30
5.5.300.0070.05017.95
5.5.290.0070.03717.98
5.5.280.0000.07720.78
5.5.270.0070.07320.98
5.5.260.0070.05720.77
5.5.250.0030.04720.69
5.5.240.0230.03720.24
5.4.450.0700.06719.20
5.4.440.0800.05319.20
5.4.430.0600.05719.48
5.4.420.0630.05719.47
5.4.410.0600.05019.34
5.4.400.0600.06019.10
5.4.390.0570.05319.36
5.4.380.0700.05319.36
5.4.370.0700.05719.23
5.4.360.0570.05319.14
5.4.350.0600.07019.13
5.4.340.0530.05719.13
5.4.320.0600.05319.27
5.4.310.0700.04019.27
5.4.300.0830.04319.25
5.4.290.0830.04319.25
5.4.280.0630.06319.14
5.4.270.0800.05019.13
5.4.260.0730.07018.83
5.4.250.0730.04719.25
5.4.240.0870.05019.35
5.4.230.0800.04719.27
5.4.220.0700.06019.16
5.4.210.0770.05019.30
5.4.200.0770.04719.27
5.4.190.0670.06018.85
5.4.180.0770.05019.00
5.4.170.0670.06018.83
5.4.160.0700.05319.25
5.4.150.0870.04318.97
5.4.140.0800.04716.44
5.4.130.0630.05716.55
5.4.120.0770.05016.48
5.4.110.0730.05016.63
5.4.100.0700.05016.60
5.4.90.0830.05016.19
5.4.80.0730.06316.23
5.4.70.0230.06316.54
5.4.60.0400.05716.38
5.4.50.0030.03316.43
5.4.40.0070.06316.22
5.4.30.0070.07016.18
5.4.20.0300.07016.42

preferences:
47.81 ms | 401 KiB | 5 Q