3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'baz'; } class FooInterceptor extends Foo { private $wrapped; public function __construct(Foo $wrapped) { $this->wrapped = $wrapped; unset($this->bar); } public function __get($name) { var_dump('reading ' . $name); return $this->wrapped->$name; } } $foo = new FooInterceptor(new Foo); var_dump($foo->bar); $class = new ReflectionClass(FooInterceptor::class); $property = $class->getProperty('bar'); var_dump($property);

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.4.120.0140.00624.03
8.4.110.0050.00522.70
8.4.100.0100.00918.84
8.4.90.0030.00619.07
8.4.80.0080.01218.65
8.4.70.0100.00917.96
8.4.60.0050.00419.16
8.4.50.0130.00418.39
8.4.40.0100.01019.37
8.4.30.0100.01017.51
8.4.20.0150.00617.69
8.4.10.0060.00319.64
8.3.250.0070.01118.86
8.3.240.0130.00817.24
8.3.230.0120.00716.76
8.3.220.0120.00618.88
8.3.210.0110.00916.54
8.3.200.0060.00316.66
8.3.190.0030.00517.27
8.3.180.0160.00317.09
8.3.170.0120.00620.72
8.3.160.0160.00317.14
8.3.150.0150.00020.76
8.3.140.0040.00416.61
8.3.130.0100.00016.61
8.3.120.0100.00619.17
8.3.110.0130.00320.94
8.3.100.0080.00024.06
8.3.90.0000.00826.77
8.3.80.0060.00316.63
8.3.70.0120.00916.63
8.3.60.0050.01016.61
8.3.50.0110.00922.04
8.3.40.0130.00718.65
8.3.30.0140.00018.90
8.3.20.0090.00619.14
8.3.10.0040.00421.76
8.3.00.0110.00419.51
8.2.290.0100.00820.20
8.2.280.0060.00218.68
8.2.270.0110.00717.23
8.2.260.0110.00716.54
8.2.250.0040.00418.50
8.2.240.0130.00617.39
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0100.01026.77
8.2.200.0080.00316.75
8.2.190.0090.00916.58
8.2.180.0120.00318.32
8.2.170.0150.00022.96
8.2.160.0070.01320.32
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0080.00018.09
8.2.120.0080.00026.35
8.2.110.0030.00719.45
8.2.100.0070.00417.84
8.2.90.0040.00417.75
8.2.80.0000.00817.97
8.2.70.0000.00817.79
8.2.60.0040.00418.16
8.2.50.0050.00318.10
8.2.40.0050.00320.58
8.2.30.0040.00419.19
8.2.20.0000.00718.12
8.2.10.0070.00018.06
8.2.00.0000.00717.81
8.1.330.0110.00822.14
8.1.320.0090.01115.97
8.1.310.0000.01016.56
8.1.300.0080.00818.38
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0070.00020.37
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00620.99
8.1.230.0080.00419.54
8.1.220.0040.00417.74
8.1.210.0100.00018.77
8.1.200.0000.00917.38
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00820.69
8.1.160.0040.00418.88
8.1.150.0070.00020.24
8.1.140.0040.00419.50
8.1.130.0030.00319.07
8.1.120.0000.00717.46
8.1.110.0080.00017.37
8.1.100.0040.00417.39
8.1.90.0000.00817.35
8.1.80.0040.00417.41
8.1.70.0000.00717.45
8.1.60.0000.00817.48
8.1.50.0080.00017.48
8.1.40.0080.00017.50
8.1.30.0000.00817.61
8.1.20.0000.00817.63
8.1.10.0060.00317.61
8.1.00.0000.00817.52
8.0.300.0000.00818.77
8.0.290.0000.00816.88
8.0.280.0030.00318.45
8.0.270.0030.00317.20
8.0.260.0000.00717.14
8.0.250.0070.00017.06
8.0.240.0030.00516.95
8.0.230.0000.00717.00
8.0.220.0070.00016.97
8.0.210.0030.00316.84
8.0.200.0060.00017.06
8.0.190.0000.00717.02
8.0.180.0080.00017.00
8.0.170.0030.00716.90
8.0.160.0030.00417.01
8.0.150.0030.00516.86
8.0.140.0000.00816.85
8.0.130.0000.00513.37
8.0.120.0080.00016.91
8.0.110.0000.00716.75
8.0.100.0040.00416.96
8.0.90.0080.00016.97
8.0.80.0100.00717.00
8.0.70.0040.00416.88
8.0.60.0040.00417.00
8.0.50.0030.00516.98
8.0.30.0100.00917.12
8.0.20.0070.01217.40
8.0.10.0040.00417.09
8.0.00.0070.01016.70
7.4.330.0060.00015.55
7.4.320.0000.00716.45
7.4.300.0060.00016.52
7.4.290.0000.00716.42
7.4.280.0070.00016.65
7.4.270.0070.00016.52
7.4.260.0030.00316.49
7.4.250.0060.00316.55
7.4.240.0070.00016.62
7.4.230.0030.00316.58
7.4.220.0110.01016.44
7.4.210.0030.01016.57
7.4.200.0070.00016.45
7.4.160.0080.01116.40
7.4.150.0080.01117.40
7.4.140.0100.00717.86
7.4.130.0080.00916.47
7.4.120.0110.00816.47
7.4.110.0160.00516.64
7.4.100.0070.01716.46
7.4.90.0140.00316.45
7.4.80.0030.01619.39
7.4.70.0090.01216.69
7.4.60.0130.00316.54
7.4.50.0000.01316.63
7.4.40.0070.01016.52
7.4.30.0100.01316.54
7.4.00.0090.00614.85
7.3.330.0060.00013.27
7.3.320.0030.00313.19
7.3.310.0000.00716.18
7.3.300.0070.00016.28
7.3.290.0040.01016.39
7.3.280.0110.00716.29
7.3.270.0070.01717.40
7.3.260.0120.00516.52
7.3.250.0080.00916.43
7.3.240.0130.00916.31
7.3.230.0120.00416.35
7.3.210.0080.01316.25
7.3.200.0110.00719.39
7.3.190.0090.00616.43
7.3.180.0090.00616.45
7.3.170.0130.00316.17
7.3.160.0060.01816.39
7.2.330.0140.00416.41
7.2.320.0160.00316.58
7.2.310.0070.01016.75
7.2.300.0130.01016.76
7.2.290.0110.00716.56
7.2.60.0000.01616.93
7.1.200.0070.00715.74
7.1.70.0000.00717.07
7.1.60.0100.00717.36
7.1.00.0230.04722.69
7.0.200.0000.00916.46
7.0.140.0200.05322.15
7.0.130.0170.07321.97
7.0.120.0100.07322.15
7.0.110.0000.07722.12
7.0.100.0170.05722.14
7.0.90.0230.04722.14
7.0.80.0070.06322.13
7.0.70.0100.06322.03
7.0.60.0130.05321.95
7.0.50.0200.07022.12
7.0.40.0070.07322.13
7.0.30.0070.07022.03
7.0.20.0170.07021.99
7.0.10.0170.05322.01
7.0.00.0130.08021.98
5.6.290.0100.08020.87
5.6.280.0100.07321.09
5.6.270.0100.07021.11
5.6.260.0170.06321.09
5.6.250.0100.06021.09
5.6.240.0100.06320.83
5.6.230.0100.06021.11
5.6.220.0130.05720.80
5.6.210.0070.06320.95
5.6.200.0170.06320.89
5.6.190.0130.07720.86
5.6.180.0270.07021.06
5.6.170.0200.07321.04
5.6.160.0170.06721.06
5.6.150.0100.07020.88
5.6.140.0030.07021.07
5.6.130.0100.05721.00
5.6.120.0100.08020.73
5.6.110.0070.06320.81
5.6.100.0070.08321.01
5.6.90.0130.05721.02
5.6.80.0130.05320.44
5.6.70.0070.06020.23
5.6.60.0130.05720.43
5.6.50.0200.05020.27
5.6.40.0000.07020.25
5.6.30.0070.06320.18
5.6.20.0230.04720.45
5.6.10.0170.05020.39
5.6.00.0100.05720.45

preferences:
28.81 ms | 403 KiB | 5 Q