3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; public function __get($property) { return $this->bar; } public function __set($property, $value) { $this->bar = &$value; } } $test = new Foo; $a = 0; $test->bar = &$a; $a++; echo $test->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.40.0140.00418.84
8.3.30.0140.00018.54
8.3.20.0040.00418.77
8.3.10.0090.00020.61
8.3.00.0030.00619.38
8.2.170.0080.00622.96
8.2.160.0070.00719.05
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0070.00420.88
8.2.110.0110.00020.83
8.2.100.0060.00617.78
8.2.90.0030.00919.27
8.2.80.0000.00719.35
8.2.70.0030.00517.50
8.2.60.0050.00317.91
8.2.50.0080.00018.07
8.2.40.0000.00718.00
8.2.30.0040.00417.98
8.2.20.0060.00317.71
8.2.10.0000.00717.80
8.2.00.0050.00317.79
8.1.270.0080.00024.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0070.00422.33
8.1.230.0070.00420.91
8.1.220.0030.00617.74
8.1.210.0050.00318.85
8.1.200.0060.00317.35
8.1.190.0040.00417.29
8.1.180.0000.00818.10
8.1.170.0000.01118.67
8.1.160.0030.00518.82
8.1.150.0020.00518.61
8.1.140.0040.00417.30
8.1.130.0030.00317.83
8.1.120.0040.00417.41
8.1.110.0040.00417.40
8.1.100.0000.00717.41
8.1.90.0040.00417.36
8.1.80.0030.00317.28
8.1.70.0000.00717.37
8.1.60.0000.00817.64
8.1.50.0060.00317.50
8.1.40.0040.00417.55
8.1.30.0040.00417.64
8.1.20.0000.00917.66
8.1.10.0020.00517.50
8.1.00.0050.00317.51
8.0.300.0040.00419.98
8.0.290.0040.00416.63
8.0.280.0000.00718.32
8.0.270.0030.00317.19
8.0.260.0000.00616.82
8.0.250.0080.00016.89
8.0.240.0040.00416.98
8.0.230.0000.00716.97
8.0.220.0000.00716.85
8.0.210.0000.00816.93
8.0.200.0000.00616.90
8.0.190.0030.00516.99
8.0.180.0050.00216.94
8.0.170.0030.00716.86
8.0.160.0000.00716.79
8.0.150.0030.00616.87
8.0.140.0030.00616.86
8.0.130.0050.00013.37
8.0.120.0040.00416.70
8.0.110.0070.00016.83
8.0.100.0040.00416.74
8.0.90.0040.00416.78
8.0.80.0120.00316.93
8.0.70.0040.00416.75
8.0.60.0050.00316.74
8.0.50.0050.00216.79
8.0.30.0130.01417.23
8.0.20.0130.00617.07
8.0.10.0080.00016.89
8.0.00.0110.00616.85
7.4.330.0020.00213.00
7.4.320.0040.00416.45
7.4.300.0070.00016.48
7.4.290.0000.00616.52
7.4.280.0050.00316.61
7.4.270.0040.00416.57
7.4.260.0000.00613.17
7.4.250.0040.00416.64
7.4.240.0000.00716.59
7.4.230.0000.00716.60
7.4.220.0060.01016.64
7.4.210.0090.00716.58
7.4.200.0030.00316.53
7.4.190.0030.00316.36
7.4.160.0080.00816.62
7.4.150.0130.00316.43
7.4.140.0100.00816.45
7.4.130.0100.01016.52
7.4.120.0080.00816.50
7.4.110.0110.01316.56
7.4.100.0070.01016.46
7.4.90.0090.00916.51
7.4.80.0080.00819.39
7.4.70.0130.00416.39
7.4.60.0120.00416.53
7.4.50.0040.00416.59
7.4.40.0070.01116.64
7.4.30.0060.01216.49
7.4.00.0060.01215.13
7.3.330.0060.00013.35
7.3.320.0000.00513.17
7.3.310.0070.00016.36
7.3.300.0030.00316.35
7.3.290.0060.01316.36
7.3.280.0030.01316.35
7.3.270.0170.00016.43
7.3.260.0220.00416.26
7.3.250.0120.00516.37
7.3.240.0100.00716.54
7.3.230.0130.00416.49
7.3.210.0030.01416.41
7.3.200.0060.01316.53
7.3.190.0070.01016.36
7.3.180.0100.00716.64
7.3.170.0100.00716.34
7.3.160.0030.01316.31
7.3.120.0000.01615.02
7.2.330.0110.00616.41
7.2.320.0030.01516.38
7.2.310.0070.01816.70
7.2.300.0080.00816.68
7.2.290.0070.00916.71
7.2.110.0170.00316.62
7.2.60.0000.00816.77
7.1.200.0080.00415.71
7.1.100.0090.00618.14
7.1.70.0030.00717.13
7.1.60.0140.01019.40
7.1.50.0040.01416.82
7.1.00.0070.04322.36
7.0.200.0000.00816.60
7.0.140.0030.07021.95
7.0.120.0030.07322.04
7.0.60.0070.05319.93
7.0.50.0030.09017.87
7.0.40.0070.05720.11
7.0.30.0270.03720.25
7.0.20.0400.08320.14
7.0.10.0100.07720.26
7.0.00.0130.08320.05
5.6.280.0000.07321.08
5.6.210.0100.07320.59
5.6.200.0270.03318.18
5.6.190.0130.09320.49
5.6.180.0270.05320.57
5.6.170.0330.09020.55
5.6.160.0100.08320.54
5.6.150.0170.06318.21
5.6.140.0070.06018.23
5.6.130.0000.08718.23
5.6.120.0030.05020.91
5.6.110.0100.07321.04
5.6.100.0070.07720.99
5.6.90.0130.07720.97
5.6.80.0130.04020.50
5.5.350.0270.07720.41
5.5.340.0030.05017.98
5.5.330.0130.08020.19
5.5.320.0300.04020.38
5.5.310.0370.04020.34
5.5.300.0130.07318.04
5.5.290.0100.06718.06
5.5.280.0000.05020.90
5.5.270.0030.05320.74
5.5.260.0000.04320.96
5.5.250.0070.08720.59
5.5.240.0100.07020.28
5.4.450.0070.05719.41
5.4.440.0070.08019.42
5.4.430.0070.06319.19
5.4.420.0170.06319.17
5.4.410.0200.06719.44
5.4.400.0100.07319.25
5.4.390.0030.08018.87
5.4.380.0130.05319.24
5.4.370.0170.06719.24
5.4.360.0070.07018.89
5.4.350.0000.07018.90
5.4.340.0100.04318.87
5.4.320.0100.07319.15
5.4.310.0000.09019.24
5.4.300.0030.08319.15
5.4.290.0030.08018.92
5.4.280.0170.06719.23
5.4.270.0000.05018.85
5.4.260.0030.06019.15
5.4.250.0130.07319.07
5.4.240.0030.07718.97
5.4.230.0070.04718.86
5.4.220.0030.07018.97
5.4.210.0100.03319.23
5.4.200.0070.08319.14
5.4.190.0000.06719.20
5.4.180.0070.06019.17
5.4.170.0030.08019.23
5.4.160.0030.07318.83
5.4.150.0030.05718.83
5.4.140.0000.04316.31
5.4.130.0030.06316.43
5.4.120.0030.04716.29
5.4.110.0030.08016.54
5.4.100.0000.05016.43
5.4.90.0000.05316.66
5.4.80.0030.03716.45
5.4.70.0000.04016.65
5.4.60.0000.04016.37
5.4.50.0030.04716.44
5.4.40.0100.04016.40
5.4.30.0070.03316.42
5.4.20.0070.07316.27
5.4.10.0030.04016.34
5.4.00.0070.06315.79
5.3.290.0030.04314.74
5.3.280.0100.04314.61
5.3.270.0100.05314.66
5.3.260.0070.07314.61
5.3.250.0200.03714.64
5.3.240.0070.07714.68
5.3.230.0030.08014.61
5.3.220.0130.03314.61
5.3.210.0070.04714.71
5.3.200.0100.07014.57
5.3.190.0070.07314.62
5.3.180.0000.04714.58
5.3.170.0030.04014.59
5.3.160.0000.04314.56
5.3.150.0070.07314.61
5.3.140.0000.04014.58
5.3.130.0070.06314.43
5.3.120.0030.08314.63
5.3.110.0100.08014.56
5.3.100.0070.07714.19
5.3.90.0030.08014.03
5.3.80.0130.07013.96
5.3.70.0030.07014.19
5.3.60.0070.07314.00
5.3.50.0100.06314.11
5.3.40.0100.07314.11
5.3.30.0100.07013.86
5.3.20.0070.07313.85
5.3.10.0030.05013.61
5.3.00.0070.05313.68
5.2.170.0070.03311.10
5.2.160.0030.06011.23
5.2.150.0100.05711.31
5.2.140.0030.06711.11
5.2.130.0030.03711.16
5.2.120.0070.06011.15
5.2.110.0070.04011.27
5.2.100.0070.03311.12
5.2.90.0070.04011.03
5.2.80.0000.04010.98
5.2.70.0100.06011.25
5.2.60.0100.05711.06
5.2.50.0000.04711.01
5.2.40.0000.03711.07
5.2.30.0030.06010.87
5.2.20.0000.06310.88
5.2.10.0000.06310.92
5.2.00.0000.06710.77
5.1.60.0000.05710.05
5.1.50.0100.02310.06
5.1.40.0000.06010.00
5.1.30.0100.04310.41
5.1.20.0030.02710.27
5.1.10.0030.05310.07
5.1.00.0070.0309.98
5.0.50.0030.0208.57
5.0.40.0070.0438.32
5.0.30.0070.0478.14
5.0.20.0000.0508.20
5.0.10.0030.0238.14
5.0.00.0030.0638.30
4.4.90.0000.0307.63
4.4.80.0030.0307.63
4.4.70.0000.0307.63
4.4.60.0030.0307.63
4.4.50.0030.0177.63
4.4.40.0030.0277.63
4.4.30.0030.0337.63
4.4.20.0030.0337.63
4.4.10.0000.0337.63
4.4.00.0070.0477.63
4.3.110.0000.0377.63
4.3.100.0070.0177.63
4.3.90.0030.0237.63
4.3.80.0000.0407.63
4.3.70.0070.0177.63
4.3.60.0070.0277.63
4.3.50.0030.0207.63
4.3.40.0030.0507.63
4.3.30.0000.0207.63
4.3.20.0000.0177.63
4.3.10.0030.0177.63
4.3.00.0030.0137.63

preferences:
47.33 ms | 400 KiB | 5 Q