3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; public function &__get($property) { echo 'get'; switch ($property) { case 'bar': return $this->bar; //etc. } } public function __set($property, $value) { echo 'set'; switch ($property) { case 'bar': $this->bar = $value; break; //etc. } } } $foo = new Foo(); $foo->bar = 1; $foo->bar++; echo $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.0160.00618.55
8.3.50.0140.00617.50
8.3.40.0110.00318.69
8.3.30.0090.00618.71
8.3.20.0040.00418.79
8.3.10.0040.01420.54
8.3.00.0000.00817.47
8.2.180.0090.01216.88
8.2.170.0040.01122.96
8.2.160.0140.00022.08
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00019.95
8.2.110.0060.00320.91
8.2.100.0040.00717.84
8.2.90.0040.00419.18
8.2.80.0000.00817.93
8.2.70.0050.00517.63
8.2.60.0040.00417.79
8.2.50.0050.00318.07
8.2.40.0040.00419.95
8.2.30.0050.00318.21
8.2.20.0040.00417.80
8.2.10.0080.00017.69
8.2.00.0070.00017.86
8.1.280.0120.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00020.87
8.1.230.0070.00421.02
8.1.220.0050.00317.77
8.1.210.0040.00418.99
8.1.200.0030.00617.35
8.1.190.0080.00017.53
8.1.180.0080.00018.10
8.1.170.0000.00718.89
8.1.160.0000.00718.89
8.1.150.0040.00418.64
8.1.140.0030.00717.37
8.1.130.0070.00017.82
8.1.120.0000.00717.40
8.1.110.0040.00417.36
8.1.100.0040.00317.47
8.1.90.0040.00417.46
8.1.80.0030.00517.48
8.1.70.0030.00317.35
8.1.60.0040.00417.58
8.1.50.0050.00317.51
8.1.40.0050.00317.54
8.1.30.0020.00517.58
8.1.20.0000.00817.67
8.1.10.0040.00417.53
8.1.00.0030.00617.57
8.0.300.0070.00019.89
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0070.00017.26
8.0.260.0000.00716.68
8.0.250.0030.00516.87
8.0.240.0040.00416.97
8.0.230.0000.00716.87
8.0.220.0070.00016.92
8.0.210.0000.00716.90
8.0.200.0000.00716.85
8.0.190.0000.00817.01
8.0.180.0020.00516.84
8.0.170.0030.00616.96
8.0.160.0000.00716.92
8.0.150.0000.00816.86
8.0.140.0070.00016.70
8.0.130.0030.00313.37
8.0.120.0000.00816.73
8.0.110.0000.00816.72
8.0.100.0000.00716.81
8.0.90.0000.00716.91
8.0.80.0070.01316.77
8.0.70.0050.00316.73
8.0.60.0000.00816.88
8.0.50.0000.00816.67
8.0.30.0100.01017.22
8.0.20.0120.00617.28
8.0.10.0040.00417.09
8.0.00.0100.01016.82
7.4.330.0050.00014.89
7.4.320.0030.00316.53
7.4.300.0040.00416.61
7.4.290.0000.00816.52
7.4.280.0050.00516.53
7.4.270.0000.00716.45
7.4.260.0030.00313.25
7.4.250.0030.00516.57
7.4.240.0030.00316.62
7.4.230.0030.00516.61
7.4.220.0030.01416.67
7.4.210.0090.00716.61
7.4.200.0070.00016.61
7.4.190.0040.00416.74
7.4.160.0120.00316.27
7.4.150.0090.00917.07
7.4.140.0080.00917.19
7.4.130.0090.01216.60
7.4.120.0110.01216.52
7.4.110.0060.01216.45
7.4.100.0130.01016.53
7.4.90.0070.01116.58
7.4.80.0030.01318.80
7.4.70.0100.01316.26
7.4.60.0090.01216.67
7.4.50.0040.00423.17
7.4.40.0110.00021.69
7.4.30.0120.00816.46
7.4.00.0080.00914.94
7.3.330.0040.00413.17
7.3.320.0040.00413.38
7.3.310.0040.00416.32
7.3.300.0030.00316.32
7.3.290.0110.00416.28
7.3.280.0110.00616.31
7.3.270.0130.00317.07
7.3.260.0090.00918.24
7.3.250.0150.00616.49
7.3.240.0070.01016.65
7.3.230.0060.01216.64
7.3.210.0060.01116.56
7.3.200.0140.00319.39
7.3.190.0100.01316.44
7.3.180.0130.00316.23
7.3.170.0030.01216.39
7.3.160.0060.00916.32
7.3.120.0050.01214.88
7.3.110.0060.01314.84
7.3.100.0080.00614.81
7.3.90.0120.00614.70
7.3.80.0070.00715.05
7.3.70.0070.00714.91
7.3.60.0030.01014.62
7.3.50.0090.00314.75
7.3.40.0030.01214.94
7.3.30.0090.00014.67
7.3.20.0060.01016.68
7.3.10.0000.01416.82
7.3.00.0070.00316.58
7.2.330.0120.00616.47
7.2.320.0100.00616.61
7.2.310.0120.00616.80
7.2.300.0100.00616.56
7.2.290.0060.01016.78
7.2.250.0120.00615.09
7.2.240.0070.01314.74
7.2.230.0110.00414.69
7.2.220.0030.00714.68
7.2.210.0100.00715.33
7.2.200.0050.00515.11
7.2.190.0100.00715.12
7.2.180.0040.00815.11
7.2.170.0070.00714.84
7.2.00.0040.00819.57
7.1.330.0000.01215.89
7.1.320.0060.00615.70
7.1.310.0030.00615.81
7.1.300.0040.01115.46
7.1.290.0040.00815.79
7.1.280.0060.00315.75
7.1.270.0070.00715.70
7.1.260.0100.00015.72
7.1.100.0060.00617.95
7.1.70.0060.00917.02
7.1.60.0040.01919.40
7.1.50.0030.00716.93
7.1.00.0030.03322.34
7.0.200.0030.00316.79
7.0.140.0100.06722.09
7.0.120.0030.03322.18
7.0.60.0200.07019.91
7.0.50.0000.04317.89
7.0.40.0130.06320.02
7.0.30.0200.03720.33
7.0.20.0270.05320.25
7.0.10.0230.08020.24
7.0.00.0100.03720.12
5.6.280.0000.07721.05
5.6.210.0100.08320.65
5.6.200.0070.06018.25
5.6.190.0100.03720.64
5.6.180.0270.03320.64
5.6.170.0270.05720.62
5.6.160.0000.04320.51
5.6.150.0130.03018.29
5.6.140.0100.03718.27
5.6.130.0130.07318.27
5.6.120.0100.08721.00
5.6.110.0070.07320.98
5.6.100.0070.06320.98
5.6.90.0030.08320.98
5.6.80.0030.08320.49
5.6.70.3770.04020.36
5.5.350.0270.07320.33
5.5.340.0030.08318.01
5.5.330.0130.08020.31
5.5.320.0070.08020.26
5.5.310.0270.04020.29
5.5.300.0070.08318.09
5.5.290.0070.07017.93
5.5.280.0070.05020.97
5.5.270.0070.07020.84
5.5.260.0200.06720.85
5.5.250.0070.08020.47
5.5.240.0100.07720.27
5.4.450.0170.07719.48
5.4.440.0070.04019.33
5.4.430.0030.04019.57
5.4.420.0070.03719.32
5.4.410.0030.03719.34
5.4.400.0070.03318.98
5.4.390.0030.03719.15
5.4.380.0070.03318.87
5.4.370.0100.04019.09
5.4.360.0030.03719.00
5.4.350.0070.03718.87
5.4.340.0000.04019.11
5.4.320.0030.04019.20
5.4.310.0070.03319.24
5.4.300.0000.04719.16
5.4.290.0130.03019.07
5.4.280.0070.03319.16
5.4.270.0100.03019.15
5.4.260.0000.04019.02
5.4.250.0030.03719.15
5.4.240.0070.03319.25
5.4.230.0070.03318.97
5.4.220.0070.07718.87
5.4.210.0100.03318.88
5.4.200.0030.04019.11
5.4.190.0070.03719.19
5.4.180.0030.03718.84
5.4.170.0000.04319.23
5.4.160.0130.04719.12
5.4.150.0030.04318.84
5.4.140.0070.07016.29
5.4.130.0100.06316.34
5.4.120.0030.06316.32
5.4.110.0070.07016.43
5.4.100.0000.06716.42
5.4.90.0070.03316.67
5.4.80.0070.07016.42
5.4.70.0030.04016.29
5.4.60.0070.03316.39
5.4.50.0070.07316.34
5.4.40.0000.05016.36
5.4.30.0070.06016.41
5.4.20.0130.06016.28
5.4.10.0130.05316.38
5.4.00.0070.05315.77
5.3.290.0030.03714.70
5.3.280.0070.03314.67
5.3.270.0130.07014.76
5.3.260.0000.06714.77
5.3.250.0070.07314.68
5.3.240.0000.07314.50
5.3.230.0030.07314.65
5.3.220.0100.06714.61
5.3.210.0100.04314.46
5.3.200.0100.03714.72
5.3.190.0030.05314.56
5.3.180.0030.06314.49
5.3.170.0030.06014.46
5.3.160.0170.05714.57
5.3.150.0070.07714.72
5.3.140.0070.07314.56
5.3.130.0070.07014.58
5.3.120.0070.08014.61
5.3.110.0170.06714.44
5.3.100.0000.06014.09
5.3.90.0070.04014.18
5.3.80.0130.06314.04
5.3.70.0000.06314.05
5.3.60.0000.04314.00
5.3.50.0070.06013.90
5.3.40.0030.06014.01
5.3.30.0070.07014.07
5.3.20.0000.04013.74
5.3.10.0030.05313.82
5.3.00.0070.06313.66
5.2.170.0100.04011.21
5.2.160.0000.03311.21
5.2.150.0000.04011.30
5.2.140.0000.05011.30
5.2.130.0070.06311.07
5.2.120.0070.06011.19
5.2.110.0030.04011.16
5.2.100.0030.05711.27
5.2.90.0000.04011.25
5.2.80.0030.04311.16
5.2.70.0070.05011.19
5.2.60.0070.03311.13
5.2.50.0030.03011.08
5.2.40.0000.03011.05
5.2.30.0030.04311.04
5.2.20.0000.04010.99
5.2.10.0000.03010.91
5.2.00.0030.04710.71
5.1.60.0030.0279.91
5.1.50.0000.0339.91
5.1.40.0070.0339.98
5.1.30.0100.05010.23
5.1.20.0030.03710.37
5.1.10.0030.05310.13
5.1.00.0070.05310.03
5.0.50.0070.0378.71
5.0.40.0000.0508.42
5.0.30.0000.0708.18
5.0.20.0030.0438.20
5.0.10.0000.0438.13
5.0.00.0070.0608.21
4.4.90.0000.0338.09
4.4.80.0000.0278.09
4.4.70.0100.0208.09
4.4.60.0000.0178.09
4.4.50.0000.0308.09
4.4.40.0000.0308.09
4.4.30.0100.0278.09
4.4.20.0000.0408.09
4.4.10.0070.0338.09
4.4.00.0070.0338.09
4.3.110.0030.0208.09
4.3.100.0070.0278.09
4.3.90.0070.0338.09
4.3.80.0030.0508.09
4.3.70.0030.0308.09
4.3.60.0070.0338.09
4.3.50.0030.0308.09
4.3.40.0030.0508.09
4.3.30.0000.0208.09
4.3.20.0000.0208.09
4.3.10.0030.0338.09
4.3.00.0000.0378.09

preferences:
44.62 ms | 401 KiB | 5 Q