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.60.0060.00916.37
8.3.50.0130.00518.24
8.3.40.0130.00918.71
8.3.30.0030.01218.71
8.3.20.0030.00618.60
8.3.10.0030.00620.44
8.3.00.0040.00419.38
8.2.180.0190.00316.75
8.2.170.0130.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00221.13
8.2.110.0090.00022.08
8.2.100.0060.00617.85
8.2.90.0040.00418.16
8.2.80.0060.00319.03
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0090.00018.16
8.2.30.0040.00418.08
8.2.20.0030.00617.52
8.2.10.0000.00717.59
8.2.00.0070.00017.72
8.1.280.0170.00025.92
8.1.270.0090.00024.66
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00622.14
8.1.230.0000.01120.79
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0070.00017.51
8.1.180.0040.00418.10
8.1.170.0080.00318.76
8.1.160.0050.00218.82
8.1.150.0040.00418.59
8.1.140.0070.00017.41
8.1.130.0050.00317.83
8.1.120.0040.00417.29
8.1.110.0070.00017.45
8.1.100.0040.00417.34
8.1.90.0040.00417.28
8.1.80.0030.00317.39
8.1.70.0040.00417.38
8.1.60.0030.00617.46
8.1.50.0000.00817.46
8.1.40.0040.00417.51
8.1.30.0000.00817.48
8.1.20.0000.00817.70
8.1.10.0040.00417.59
8.1.00.0060.00317.39
8.0.300.0070.00020.05
8.0.290.0080.00016.75
8.0.280.0000.00818.30
8.0.270.0000.00717.30
8.0.260.0000.00616.80
8.0.250.0080.00016.84
8.0.240.0020.00516.96
8.0.230.0000.00816.72
8.0.220.0030.00316.71
8.0.210.0030.00316.78
8.0.200.0000.00616.87
8.0.190.0050.00316.76
8.0.180.0080.00016.84
8.0.170.0000.00816.80
8.0.160.0070.00016.82
8.0.150.0000.00816.82
8.0.140.0040.00416.77
8.0.130.0000.00713.29
8.0.120.0000.00816.69
8.0.110.0000.00716.93
8.0.100.0020.00516.83
8.0.90.0030.00516.85
8.0.80.0060.00916.85
8.0.70.0080.00016.73
8.0.60.0050.00216.69
8.0.50.0070.00016.64
8.0.30.0130.01017.19
8.0.20.0090.01117.28
8.0.10.0070.00016.98
8.0.00.0070.01116.75
7.4.330.0020.00212.91
7.4.320.0030.00316.45
7.4.300.0060.00016.51
7.4.290.0080.00016.59
7.4.280.0040.00416.40
7.4.270.0040.00416.51
7.4.260.0050.00013.19
7.4.250.0000.00816.61
7.4.240.0040.00416.43
7.4.230.0070.00016.61
7.4.220.0040.01216.46
7.4.210.0070.00916.60
7.4.200.0000.00716.64
7.4.190.0000.00716.59
7.4.160.0070.01016.35
7.4.150.0130.00416.33
7.4.140.0110.01116.42
7.4.130.0090.00916.41
7.4.120.0090.00816.44
7.4.110.0110.01116.34
7.4.100.0140.00716.32
7.4.90.0060.01216.51
7.4.80.0130.00319.39
7.4.70.0060.00916.57
7.4.60.0120.00416.35
7.4.50.0070.00016.52
7.4.40.0060.00916.18
7.4.30.0090.01316.39
7.4.00.0100.00715.11
7.3.330.0040.00313.23
7.3.320.0060.00013.29
7.3.310.0040.00416.34
7.3.300.0000.00716.30
7.3.290.0060.00916.30
7.3.280.0100.00916.31
7.3.270.0100.00716.36
7.3.260.0090.00916.35
7.3.250.0050.01416.41
7.3.240.0060.01016.55
7.3.230.0070.01016.51
7.3.210.0120.01216.30
7.3.200.0040.01216.49
7.3.190.0090.01216.35
7.3.180.0170.00016.16
7.3.170.0130.00316.56
7.3.160.0110.00916.21
7.3.120.0000.01114.73
7.3.10.0120.00316.55
7.3.00.0100.00316.47
7.2.330.0070.01016.63
7.2.320.0190.00016.39
7.2.310.0060.01316.45
7.2.300.0030.01316.34
7.2.290.0040.01216.49
7.2.130.0040.00716.96
7.2.120.0100.00716.77
7.2.110.0100.00316.98
7.2.100.0060.00916.89
7.2.90.0080.00416.98
7.2.80.0070.01017.04
7.2.70.0070.00717.14
7.2.60.0000.01317.15
7.2.50.0100.00716.93
7.2.40.0110.00317.12
7.2.30.0090.00617.11
7.2.20.0000.01316.73
7.2.10.0100.00316.86
7.2.00.0030.01018.18
7.1.250.0130.00315.71
7.1.100.0000.01418.29
7.1.70.0000.00717.15
7.1.60.0140.01119.40
7.1.50.0060.00616.99
7.1.00.0070.05322.37
7.0.200.0000.00716.73
7.0.140.0030.07321.92
7.0.120.0030.03322.13
7.0.60.0030.06720.02
7.0.50.0170.04717.87
7.0.40.0100.08320.24
7.0.30.0300.07320.07
7.0.20.0270.07020.12
7.0.10.0230.04320.29
7.0.00.0070.05720.20
5.6.280.0070.07021.03
5.6.210.0130.07320.67
5.6.200.0070.07318.16
5.6.190.0070.04020.64
5.6.180.0300.08020.52
5.6.170.0200.04320.39
5.6.160.0100.08720.46
5.6.150.0070.03718.16
5.6.140.0070.04018.14
5.6.130.0070.08018.21
5.6.120.0170.07021.04
5.6.110.0000.08321.11
5.6.100.0130.05021.09
5.6.90.0200.07021.12
5.6.80.0100.04320.44
5.6.70.4000.04020.29
5.5.350.0300.06020.39
5.5.340.0070.05718.04
5.5.330.0070.07320.32
5.5.320.0130.05320.26
5.5.310.0230.04020.19
5.5.300.0170.07017.95
5.5.290.0030.08717.94
5.5.280.0130.05020.88
5.5.270.0030.04720.77
5.5.260.0130.06320.77
5.5.250.0130.07320.67
5.5.240.0100.06720.37
5.4.450.0030.05019.18
5.4.440.0130.04019.57
5.4.430.0030.04019.58
5.4.420.0030.04719.18
5.4.410.0000.05319.04
5.4.400.0030.04019.27
5.4.390.0170.06718.98
5.4.380.0200.06719.25
5.4.370.0030.07719.15
5.4.360.0130.06319.14
5.4.350.0070.07019.15
5.4.340.0030.07718.97
5.4.320.0030.06319.15
5.4.310.0100.07319.15
5.4.300.0030.04019.26
5.4.290.0000.06718.87
5.4.280.0100.04719.24
5.4.270.0000.04018.85
5.4.260.0000.06719.20
5.4.250.0100.06719.23
5.4.240.0170.06719.14
5.4.230.0070.07719.23
5.4.220.0030.07318.86
5.4.210.0070.07319.19
5.4.200.0070.07019.23
5.4.190.0100.05319.19
5.4.180.0000.04018.93
5.4.170.0130.06719.07
5.4.160.0070.06318.85
5.4.150.0000.06718.98
5.4.140.0070.04016.30
5.4.130.0070.07316.54
5.4.120.0070.07316.26
5.4.110.0030.05316.33
5.4.100.0030.04016.25
5.4.90.0030.07316.42
5.4.80.0030.04016.32
5.4.70.0070.03716.48
5.4.60.0100.06316.43
5.4.50.0130.06716.35
5.4.40.0070.04316.50
5.4.30.0030.04016.27
5.4.20.0070.07016.22
5.4.10.0100.07016.34
5.4.00.0100.07015.86
5.3.290.0100.07014.69
5.3.280.0100.06014.67
5.3.270.0100.04014.59
5.3.260.0000.05314.63
5.3.250.0070.06014.75
5.3.240.0170.03714.60
5.3.230.0030.08314.61
5.3.220.0030.07714.74
5.3.210.0100.07714.64
5.3.200.0070.07014.49
5.3.190.0070.06714.57
5.3.180.0070.04014.59
5.3.170.0070.03714.59
5.3.160.0100.03314.59
5.3.150.0100.07014.46
5.3.140.0030.06314.57
5.3.130.0030.04314.56
5.3.120.0130.04014.54
5.3.110.0100.06714.56
5.3.100.0100.07314.07
5.3.90.0170.07013.94
5.3.80.0100.03314.03
5.3.70.0030.08013.99
5.3.60.0000.06713.95
5.3.50.0100.06713.85
5.3.40.0030.03714.11
5.3.30.0030.03713.90
5.3.20.0170.06013.62
5.3.10.0100.04713.70
5.3.00.0100.06713.64
5.2.170.0000.04311.08
5.2.160.0000.03311.08
5.2.150.0070.05311.11
5.2.140.0100.05711.22
5.2.130.0030.05711.12
5.2.120.0130.05711.11
5.2.110.0130.04311.06
5.2.100.0070.06011.00
5.2.90.0070.05711.12
5.2.80.0130.05311.06
5.2.70.0000.06011.15
5.2.60.0130.02711.11
5.2.50.0030.05010.99
5.2.40.0030.06311.05
5.2.30.0070.06010.95
5.2.20.0030.06310.97
5.2.10.0100.05710.87
5.2.00.0070.04310.71
5.1.60.0000.0309.91
5.1.50.0070.02310.05
5.1.40.0070.0279.96
5.1.30.0000.04010.34
5.1.20.0030.05710.36
5.1.10.0030.04710.12
5.1.00.0030.05010.09
5.0.50.0000.0478.49
5.0.40.0000.0438.56
5.0.30.0030.0678.38
5.0.20.0130.0278.17
5.0.10.0000.0378.19
5.0.00.0030.0508.07
4.4.90.0000.0237.85
4.4.80.0000.0237.85
4.4.70.0000.0407.85
4.4.60.0000.0407.85
4.4.50.0070.0337.85
4.4.40.0000.0277.85
4.4.30.0030.0137.85
4.4.20.0030.0307.85
4.4.10.0030.0307.85
4.4.00.0070.0477.85
4.3.110.0000.0337.85
4.3.100.0000.0237.85
4.3.90.0000.0377.85
4.3.80.0000.0577.85
4.3.70.0070.0337.85
4.3.60.0000.0377.85
4.3.50.0030.0337.85
4.3.40.0000.0507.85
4.3.30.0030.0377.85
4.3.20.0030.0137.85
4.3.10.0070.0237.85
4.3.00.0030.0337.85

preferences:
40.77 ms | 401 KiB | 5 Q