3v4l.org

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

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.40.0090.00618.84
8.3.30.0110.00418.71
8.3.20.0080.00018.60
8.3.10.0080.00020.54
8.3.00.0000.00919.25
8.2.170.0140.00022.96
8.2.160.0120.00620.74
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0110.00018.90
8.2.110.0160.00720.39
8.2.100.0110.00017.84
8.2.90.0040.00419.19
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0080.00017.65
8.2.50.0040.00418.07
8.2.40.0070.00418.16
8.2.30.0020.00518.11
8.2.20.0000.00819.45
8.2.10.0070.00017.74
8.2.00.0040.00417.59
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0140.00722.05
8.1.230.0080.00417.42
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00817.35
8.1.190.0070.00017.53
8.1.180.0060.00318.10
8.1.170.0000.01018.91
8.1.160.0000.00718.88
8.1.150.0080.00018.60
8.1.140.0000.00817.55
8.1.130.0070.00017.77
8.1.120.0050.00317.37
8.1.110.0000.00717.41
8.1.100.0030.00317.46
8.1.90.0000.00817.49
8.1.80.0000.00717.50
8.1.70.0000.00717.42
8.1.60.0000.00817.61
8.1.50.0040.00417.50
8.1.40.0040.00417.54
8.1.30.0050.00317.59
8.1.20.0040.00417.53
8.1.10.0050.00217.63
8.1.00.0000.00817.52
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0000.00717.13
8.0.260.0030.00316.88
8.0.250.0080.00016.89
8.0.240.0000.00816.85
8.0.230.0030.00316.93
8.0.220.0050.00216.96
8.0.210.0070.00016.88
8.0.200.0060.00016.91
8.0.190.0030.00316.96
8.0.180.0050.00216.89
8.0.170.0090.00016.81
8.0.160.0030.00516.94
8.0.150.0000.00816.74
8.0.140.0040.00716.80
8.0.130.0060.00013.31
8.0.120.0060.00316.82
8.0.110.0040.00416.86
8.0.100.0030.00616.77
8.0.90.0040.00416.77
8.0.80.0030.01516.89
8.0.70.0080.00016.81
8.0.60.0000.00716.84
8.0.50.0040.00416.88
8.0.30.0120.00917.05
8.0.20.0080.01317.16
8.0.10.0000.00816.89
8.0.00.0080.01316.94
7.4.330.0000.00512.86
7.4.320.0030.00316.46
7.4.300.0000.00616.58
7.4.290.0000.00716.53
7.4.280.0000.00916.55
7.4.270.0070.00016.37
7.4.260.0000.00813.18
7.4.250.0070.00016.44
7.4.240.0070.00016.46
7.4.230.0030.00316.41
7.4.220.0110.01116.64
7.4.210.0000.01816.58
7.4.200.0030.00316.70
7.4.190.0000.00816.65
7.4.160.0150.00716.46
7.4.150.0070.01016.53
7.4.140.0100.00716.25
7.4.130.0030.01216.61
7.4.120.0090.00916.55
7.4.110.0120.00616.49
7.4.100.0060.01516.36
7.4.90.0070.01116.60
7.4.80.0110.00719.39
7.4.70.0080.00816.44
7.4.60.0110.00516.46
7.4.50.0060.00016.62
7.4.40.0100.00716.14
7.4.30.0070.01116.39
7.4.00.0070.01014.69
7.3.330.0000.00613.27
7.3.320.0000.00513.29
7.3.310.0000.00716.20
7.3.300.0040.00416.34
7.3.290.0060.01016.32
7.3.280.0070.01016.32
7.3.270.0130.00316.25
7.3.260.0070.01016.42
7.3.250.0100.00816.34
7.3.240.0090.01216.27
7.3.230.0030.01316.39
7.3.210.0000.01716.46
7.3.200.0000.01716.57
7.3.190.0100.00616.35
7.3.180.0060.01016.56
7.3.170.0050.01016.32
7.3.160.0130.00316.20
7.3.120.0130.00014.69
7.2.330.0130.00616.62
7.2.320.0110.01216.38
7.2.310.0140.00716.80
7.2.300.0100.00916.39
7.2.290.0150.00716.47
7.2.60.0090.00916.68
7.2.00.0030.00919.14
7.1.200.0000.01415.60
7.1.100.0060.00617.86
7.1.70.0030.00716.91
7.1.60.0040.02119.30
7.1.50.0070.01416.90
7.1.00.0030.07322.33
7.0.200.0230.00414.51
7.0.140.0130.06322.04
7.0.120.0030.07022.24
7.0.60.0030.09319.83
7.0.50.0100.04017.88
7.0.40.0070.03717.73
7.0.30.0030.04017.86
7.0.20.0000.05317.81
7.0.10.0100.03717.93
7.0.00.0030.04017.77
5.6.280.0070.07020.78
5.6.210.0070.06320.70
5.6.200.0030.04318.26
5.6.190.0030.04018.29
5.6.180.0030.04318.25
5.6.170.0070.03718.28
5.6.160.0070.03718.25
5.6.150.0030.03718.23
5.6.140.0070.03718.18
5.6.130.0030.04018.26
5.6.120.0030.04018.15
5.6.110.0070.03718.17
5.6.100.0100.07718.15
5.6.90.0070.08318.25
5.6.80.0170.03317.60
5.6.70.0070.07717.57
5.6.60.0100.04317.53
5.6.50.0000.05017.57
5.6.40.0100.07017.64
5.6.30.0030.05317.59
5.6.20.0130.06317.49
5.6.10.0070.05317.54
5.6.00.0100.06717.61
5.5.350.0200.03320.44
5.5.340.0070.04317.95
5.5.330.0000.04017.95
5.5.320.0070.03718.02
5.5.310.0130.02717.96
5.5.300.0000.04318.04
5.5.290.0000.04317.95
5.5.280.0070.04718.01
5.5.270.0070.03718.07
5.5.260.0070.03718.03
5.5.250.0200.06017.86
5.5.240.0100.07317.46
5.5.230.0130.05717.46
5.5.220.0200.06717.36
5.5.210.0070.07717.46
5.5.200.0130.06317.37
5.5.190.0000.05017.30
5.5.180.0030.08017.31
5.5.160.0030.09017.44
5.5.150.0130.06717.29
5.5.140.0130.04017.43
5.5.130.0070.04717.33
5.5.120.0030.04717.34
5.5.110.0070.07317.32
5.5.100.0000.04017.30
5.5.90.0030.03717.32
5.5.80.0030.07717.21
5.5.70.0130.06317.26
5.5.60.0170.05017.22
5.5.50.0100.07717.25
5.5.40.0070.05017.22
5.5.30.0130.07017.21
5.5.20.0100.07317.19
5.5.10.0130.07017.16
5.5.00.0070.08317.30
5.4.450.0000.04319.60
5.4.440.0000.04019.36
5.4.430.0030.03719.33
5.4.420.0070.07719.36
5.4.410.0200.06719.15
5.4.400.0130.05719.08
5.4.390.0100.06718.95
5.4.380.0070.03719.04
5.4.370.0100.05719.05
5.4.360.0030.05019.12
5.4.350.0070.08319.02
5.4.340.0100.06719.14
5.4.320.0030.06019.04
5.4.310.0070.07319.04
5.4.300.0070.04319.05
5.4.290.0030.04318.98
5.4.280.0030.03719.05
5.4.270.0130.02718.98
5.4.260.0070.04319.05
5.4.250.0070.07719.06
5.4.240.0030.07319.14
5.4.230.0130.03719.11
5.4.220.0030.04019.01
5.4.210.0200.06319.03
5.4.200.0030.05719.04
5.4.190.0030.05719.26
5.4.180.0100.07718.96
5.4.170.0030.07718.94
5.4.160.0070.07019.07
5.4.150.0000.06018.87
5.4.140.0030.04716.43
5.4.130.0030.07316.35
5.4.120.0030.08016.59
5.4.110.0100.04016.40
5.4.100.0070.04316.43
5.4.90.0070.06716.64
5.4.80.0130.07016.50
5.4.70.0030.06316.48
5.4.60.0100.05016.38
5.4.50.0070.04716.45
5.4.40.0030.06716.43
5.4.30.0130.06316.46
5.4.20.0170.05016.52
5.4.10.0130.07316.57
5.4.00.0100.04015.84
5.3.290.0030.04314.71
5.3.280.0000.08014.65
5.3.270.0000.05314.67
5.3.260.0100.07314.68
5.3.250.0100.07014.82
5.3.240.0100.03014.64
5.3.230.0000.07014.45
5.3.220.0130.06714.60
5.3.210.0070.06314.53
5.3.200.0030.07714.53
5.3.190.0130.06314.58
5.3.180.0070.07714.52
5.3.170.0130.07014.61
5.3.160.0030.07314.67
5.3.150.0130.06714.52
5.3.140.0070.05714.56
5.3.130.0070.08014.56
5.3.120.0130.07314.61
5.3.110.0070.04314.61
5.3.100.0030.07714.06
5.3.90.0030.03713.97
5.3.80.0070.03314.06
5.3.70.0000.04013.86
5.3.60.0030.03713.89
5.3.50.0000.08314.05
5.3.40.0130.06713.80
5.3.30.0070.05013.95
5.3.20.0100.06713.76
5.3.10.0070.06713.64
5.3.00.0030.04313.63
5.2.170.0100.05011.20
5.2.160.0030.06011.14
5.2.150.0070.04011.22
5.2.140.0100.05711.00
5.2.130.0100.06011.03
5.2.120.0100.03011.33
5.2.110.0070.05010.96
5.2.100.0030.06711.18
5.2.90.0100.05011.21
5.2.80.0070.05711.20
5.2.70.0030.05311.11
5.2.60.0070.04311.10
5.2.50.0030.03011.10
5.2.40.0030.03011.04
5.2.30.0070.06010.83
5.2.20.0070.05710.96
5.2.10.0070.05311.07
5.2.00.0030.05710.77
5.1.60.0030.03010.05
5.1.50.0000.0279.95
5.1.40.0000.0309.95
5.1.30.0000.04010.34
5.1.20.0000.03310.46
5.1.10.0000.02710.00
5.1.00.0030.02310.02
5.0.50.0030.0208.65
5.0.40.0070.0338.40
5.0.30.0000.0308.20
5.0.20.0030.0178.18
5.0.10.0000.0238.24
5.0.00.0000.0338.19
4.4.90.0000.0277.71
4.4.80.0000.0207.71
4.4.70.0100.0307.71
4.4.60.0000.0277.71
4.4.50.0030.0307.71
4.4.40.0030.0437.71
4.4.30.0000.0407.71
4.4.20.0100.0137.71
4.4.10.0000.0277.71
4.4.00.0030.0237.71
4.3.110.0000.0207.71
4.3.100.0000.0177.71
4.3.90.0000.0177.71
4.3.80.0000.0237.71
4.3.70.0000.0337.71
4.3.60.0000.0207.71
4.3.50.0000.0177.71
4.3.40.0000.0237.71
4.3.30.0000.0177.71
4.3.20.0000.0207.71
4.3.10.0000.0177.71
4.3.00.0030.0137.71

preferences:
39.52 ms | 400 KiB | 5 Q