3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $publicProperty = 'bar'; } class FooWrapper extends Foo { private $wrapped; public function __construct(Foo $wrapped) { $this->wrapped = $wrapped; unset($this->publicProperty); } public function __get($name) { echo 'Getting property ' . $name . PHP_EOL; return $this->wrapped->$name; } public function __set($name, $value) { echo 'Setting property ' . $name . ' to ' . $value . PHP_EOL; return $this->wrapped->$name = $value; } } $foo = new FooWrapper(new Foo()); echo $foo->publicProperty; echo PHP_EOL; echo $foo->publicProperty = 'test';

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.20.0160.00417.64
8.4.10.0060.00317.63
8.3.140.0180.00016.77
8.3.130.0060.00318.29
8.3.120.0070.01119.13
8.3.110.0090.00020.94
8.3.100.0060.00318.59
8.3.90.0150.00026.77
8.3.80.0060.00317.97
8.3.70.0150.00618.18
8.3.60.0060.01218.30
8.3.50.0150.00322.11
8.3.40.0070.00718.84
8.3.30.0040.01118.67
8.3.20.0040.00418.75
8.3.10.0000.00821.17
8.3.00.0060.00323.67
8.2.260.0090.00916.79
8.2.250.0080.00016.68
8.2.240.0030.00619.00
8.2.230.0000.00822.58
8.2.220.0090.00024.06
8.2.210.0110.00426.77
8.2.200.0030.00618.26
8.2.190.0120.00316.58
8.2.180.0060.01516.38
8.2.170.0070.00722.96
8.2.160.0100.00322.26
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0060.00320.95
8.2.110.0080.00020.94
8.2.100.0040.00817.66
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00018.04
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0000.00819.50
8.2.20.0000.00817.54
8.2.10.0000.00717.61
8.2.00.0040.00417.68
8.1.310.0090.00015.93
8.1.300.0030.00617.89
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0060.00923.99
8.1.260.0000.00926.35
8.1.250.0060.00328.09
8.1.240.0060.00320.86
8.1.230.0040.00720.85
8.1.220.0060.00318.77
8.1.210.0060.00319.02
8.1.200.0040.00417.35
8.1.190.0050.00317.43
8.1.180.0050.00318.10
8.1.170.0040.00418.48
8.1.160.0000.00818.89
8.1.150.0000.00718.62
8.1.140.0030.00617.36
8.1.130.0070.00017.70
8.1.120.0070.00017.37
8.1.110.0090.00017.36
8.1.100.0070.00017.36
8.1.90.0040.00417.30
8.1.80.0000.00717.46
8.1.70.0030.00517.41
8.1.60.0030.00517.59
8.1.50.0000.00817.46
8.1.40.0030.00517.57
8.1.30.0070.00017.66
8.1.20.0090.00017.73
8.1.10.0070.00017.59
8.1.00.0070.00317.48
8.0.300.0030.00619.98
8.0.290.0030.00617.18
8.0.280.0060.00318.36
8.0.270.0050.00217.30
8.0.260.0000.00616.80
8.0.250.0050.00217.00
8.0.240.0040.00417.01
8.0.230.0000.00816.98
8.0.220.0030.00317.03
8.0.210.0000.00716.92
8.0.200.0060.00017.00
8.0.190.0000.00717.06
8.0.180.0000.00917.00
8.0.170.0030.00316.97
8.0.160.0000.00716.95
8.0.150.0000.00716.83
8.0.140.0000.00917.00
8.0.130.0060.00013.38
8.0.120.0050.00216.85
8.0.110.0040.00416.85
8.0.100.0030.00317.07
8.0.90.0000.00716.92
8.0.80.0090.00616.93
8.0.70.0040.00416.86
8.0.60.0040.00416.99
8.0.50.0070.00016.73
8.0.30.0110.01117.15
8.0.20.0120.01117.40
8.0.10.0080.00017.04
8.0.00.0110.00716.93
7.4.330.0000.00516.82
7.4.320.0030.00316.42
7.4.300.0000.00616.51
7.4.290.0050.00316.57
7.4.280.0030.00316.43
7.4.270.0030.00316.62
7.4.260.0050.00013.20
7.4.250.0080.00016.55
7.4.240.0000.00716.53
7.4.230.0000.00816.63
7.4.220.0070.01016.58
7.4.210.0070.01016.53
7.4.200.0080.00016.70
7.4.190.0030.00316.38
7.4.160.0030.01316.44
7.4.150.0030.01417.40
7.4.140.0060.01117.86
7.4.130.0110.01016.53
7.4.120.0070.01116.50
7.4.110.0030.01316.30
7.4.100.0080.01316.45
7.4.90.0070.01416.41
7.4.80.0180.00619.39
7.4.70.0100.00616.32
7.4.60.0130.00516.52
7.4.50.0030.00616.25
7.4.40.0000.01322.77
7.4.30.0090.00916.46
7.4.00.0050.01214.90
7.3.330.0020.00213.45
7.3.320.0070.00013.34
7.3.310.0030.00316.27
7.3.300.0030.00316.32
7.3.290.0060.00916.34
7.3.280.0070.00816.34
7.3.270.0150.00317.40
7.3.260.0120.00718.24
7.3.250.0130.00616.66
7.3.240.0040.01316.40
7.3.230.0090.00916.39
7.3.210.0030.01416.34
7.3.200.0070.01419.39
7.3.190.0120.00916.47
7.3.180.0040.01116.56
7.3.170.0120.00816.36
7.3.160.0130.00316.73
7.3.120.0080.00814.79
7.3.110.0100.01014.91
7.3.100.0030.01314.81
7.3.90.0070.01114.69
7.3.80.0100.00314.61
7.3.70.0030.01014.82
7.3.60.0080.00414.90
7.3.50.0000.01514.72
7.3.40.0030.00914.80
7.3.30.0070.01114.85
7.3.20.0120.00016.47
7.3.10.0250.00315.68
7.3.00.0060.00616.72
7.2.330.0170.00316.52
7.2.320.0130.01016.76
7.2.310.0070.01016.82
7.2.300.0120.00916.47
7.2.290.0090.00816.82
7.2.250.0110.00715.07
7.2.240.0030.01314.95
7.2.230.0060.00915.16
7.2.220.0050.00515.36
7.2.210.0070.01015.09
7.2.200.0000.01415.01
7.2.190.0070.00715.15
7.2.180.0060.00914.97
7.2.170.0030.01514.92
7.2.60.0070.00716.72
7.2.00.0060.00919.62
7.1.330.0100.00315.75
7.1.320.0040.00415.95
7.1.310.0030.01315.82
7.1.300.0090.00315.77
7.1.290.0080.00815.71
7.1.280.0080.00815.85
7.1.270.0100.00715.78
7.1.260.0030.01315.64
7.1.200.0060.00615.71
7.1.100.0100.00318.08
7.1.70.0000.00916.97
7.1.60.0040.00717.25
7.1.50.0000.02316.96
7.1.00.0000.03722.36
7.0.200.0070.00016.86
7.0.140.0100.06322.15
7.0.70.0100.04019.93
7.0.60.0130.04319.82
7.0.50.0070.05720.36
7.0.40.0070.09320.17
7.0.30.0070.05020.07
7.0.20.0030.05720.17
7.0.10.0070.08320.12
7.0.00.0100.08720.18
5.6.280.0000.07321.07
5.6.220.0100.04020.50
5.6.210.0100.08020.62
5.6.200.0100.04721.09
5.6.190.0100.08021.01
5.6.180.0130.03321.14
5.6.170.0070.04020.96
5.6.160.0100.05721.08
5.6.150.0030.08721.18
5.6.140.0070.08321.04
5.6.130.0070.06321.04
5.6.120.0100.09721.04
5.6.110.0130.08020.95
5.6.100.0130.08321.02
5.6.90.0130.07720.94
5.6.80.0130.07320.35
5.6.70.0030.08320.55
5.6.60.0100.06720.31
5.6.50.0130.07720.55
5.6.40.0070.08720.45
5.6.30.0100.07320.34
5.6.20.0100.08020.43
5.6.10.0130.04320.53
5.6.00.0070.04020.35
5.5.360.0030.07020.37
5.5.350.0030.08320.46
5.5.340.0070.04320.92
5.5.330.0100.06020.65
5.5.320.0170.03320.95
5.5.310.0000.07720.78
5.5.300.0130.04720.85
5.5.290.0100.07720.84
5.5.280.0100.08320.93
5.5.270.0100.06720.92
5.5.260.0030.08320.61
5.5.250.0070.07320.76
5.5.240.0070.07720.19
5.5.230.0030.05720.21
5.5.220.0100.06720.14
5.5.210.0070.08320.17
5.5.200.0070.08020.25
5.5.190.0130.04320.20
5.5.180.0070.03720.23
5.5.160.0070.03720.12
5.5.150.0070.08020.18
5.5.140.0030.04720.15
5.5.130.0100.07720.19
5.5.120.0070.03720.18
5.5.110.0100.07720.18
5.5.100.0000.08720.06
5.5.90.0100.08019.95
5.5.80.0070.06720.10
5.5.70.0000.07019.91
5.5.60.0100.07720.16
5.5.50.0100.07719.97
5.5.40.0130.07320.10
5.5.30.0070.04020.06
5.5.20.0100.07320.16
5.5.10.0000.08720.03
5.5.00.0030.04020.04
5.4.450.0070.05019.18
5.4.440.0200.07319.37
5.4.430.0070.04019.44
5.4.420.0070.05319.17
5.4.410.0070.06019.05
5.4.400.0030.08719.05
5.4.390.0000.07319.13
5.4.380.0130.07719.09
5.4.370.0070.08319.03
5.4.360.0130.05019.04
5.4.350.0100.06319.21
5.4.340.0170.07319.16
5.4.320.0130.07019.12
5.4.310.0170.06719.21
5.4.300.0070.08319.14
5.4.290.0100.08019.21
5.4.280.0130.06318.90
5.4.270.0100.05719.03
5.4.260.0030.05719.13
5.4.250.0130.05019.02
5.4.240.0070.08019.04
5.4.230.0070.06319.11
5.4.220.0170.03719.02
5.4.210.0100.07719.23
5.4.200.0100.04319.15
5.4.190.0030.06019.17
5.4.180.0100.07319.13
5.4.170.0070.03719.22
5.4.160.0030.05019.10
5.4.150.0030.04319.02
5.4.140.0130.05316.34
5.4.130.0070.04716.41
5.4.120.0070.07016.20
5.4.110.0070.06316.44
5.4.100.0030.08016.45
5.4.90.0100.06716.48
5.4.80.0030.06316.33
5.4.70.0130.06716.40
5.4.60.0070.05016.44
5.4.50.0030.04316.36
5.4.40.0030.04016.44
5.4.30.0000.04016.36
5.4.20.0030.06316.48
5.4.10.0030.05316.32
5.4.00.0100.07015.80
5.3.290.0030.06714.73
5.3.280.0100.07314.57
5.3.270.0000.04314.67
5.3.260.0070.08014.60
5.3.250.0130.04314.75
5.3.240.0000.08314.54
5.3.230.0070.07314.63
5.3.220.0100.07014.71
5.3.210.0130.07314.64
5.3.200.0170.05314.64
5.3.190.0070.07314.51
5.3.180.0070.06314.69
5.3.170.0070.07014.64
5.3.160.0070.08314.66
5.3.150.0070.03714.64
5.3.140.0030.03714.63
5.3.130.0030.06314.58
5.3.120.0130.07314.62
5.3.110.0130.06714.57
5.3.100.0070.07314.11
5.3.90.0100.06714.14
5.3.80.0000.08314.08
5.3.70.0100.07314.11
5.3.60.0070.07714.04
5.3.50.0070.07313.88
5.3.40.0070.05014.02
5.3.30.0070.07313.94
5.3.20.0070.07713.72
5.3.10.0100.06713.76
5.3.00.0100.04713.58

preferences:
43.48 ms | 403 KiB | 5 Q