3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $publicProperty = array(); } class Bar { public function __construct(Foo $foo) { $this->wrapped = $foo; } public function & __get($name) { return $this->wrapped->$name; } } $bar = new Bar(new Foo()); $bar->publicProperty['example'] = 'Hello World!'; var_dump($bar->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.0110.00418.74
8.3.30.0070.00720.17
8.3.20.0080.00018.73
8.3.10.0050.00320.98
8.3.00.0000.00819.56
8.2.170.0080.00822.96
8.2.160.0070.00720.60
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0070.00317.50
8.2.110.0000.00919.37
8.2.100.0040.00818.03
8.2.90.0080.00019.21
8.2.80.0000.00919.31
8.2.70.0030.00617.35
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0070.00018.34
8.2.30.0040.00419.42
8.2.20.0070.00017.55
8.2.10.0040.00417.78
8.2.00.0000.00817.68
8.1.270.0000.00822.20
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00320.74
8.1.230.0070.00421.00
8.1.220.0050.00318.77
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0060.00317.40
8.1.180.0050.00318.10
8.1.170.0050.00318.34
8.1.160.0000.00718.73
8.1.150.0050.00318.51
8.1.140.0040.00417.43
8.1.130.0000.00717.78
8.1.120.0050.00217.33
8.1.110.0070.00017.33
8.1.100.0000.00717.38
8.1.90.0030.00317.30
8.1.80.0050.00417.39
8.1.70.0000.00817.39
8.1.60.0050.00317.59
8.1.50.0040.00417.52
8.1.40.0040.00417.52
8.1.30.0030.00517.58
8.1.20.0000.00917.64
8.1.10.0000.00817.48
8.1.00.0090.00017.48
8.0.300.0040.00419.80
8.0.290.0000.00716.93
8.0.280.0000.00718.34
8.0.270.0030.00317.24
8.0.260.0000.00716.77
8.0.250.0040.00416.95
8.0.240.0080.00016.91
8.0.230.0030.00316.95
8.0.220.0000.00716.78
8.0.210.0030.00316.80
8.0.200.0040.00416.84
8.0.190.0040.00416.92
8.0.180.0000.00816.97
8.0.170.0000.00716.93
8.0.160.0080.00016.89
8.0.150.0040.00416.79
8.0.140.0040.00416.86
8.0.130.0050.00013.35
8.0.120.0050.00216.75
8.0.110.0050.00316.66
8.0.100.0070.00016.97
8.0.90.0000.00716.89
8.0.80.0100.00716.88
8.0.70.0040.00416.95
8.0.60.0070.00016.77
8.0.50.0080.00016.90
8.0.30.0110.00817.18
8.0.20.0070.01117.40
8.0.10.0050.00216.97
8.0.00.0070.01116.87
7.4.330.0050.00016.85
7.4.320.0030.00316.54
7.4.300.0030.00516.63
7.4.290.0000.00716.50
7.4.280.0000.00716.41
7.4.270.0030.00316.52
7.4.260.0050.00013.20
7.4.250.0040.00416.47
7.4.240.0030.00316.65
7.4.230.0000.00716.50
7.4.220.0030.01216.56
7.4.210.0050.01116.59
7.4.200.0080.00016.44
7.4.190.0070.00016.77
7.4.160.0130.01016.32
7.4.150.0170.00717.40
7.4.140.0100.00817.86
7.4.130.0100.01316.41
7.4.120.0060.01216.44
7.4.110.0120.00816.50
7.4.100.0130.01016.50
7.4.90.0140.00316.55
7.4.80.0160.01019.39
7.4.70.0160.00016.35
7.4.60.0000.01516.49
7.4.50.0000.00916.55
7.4.40.0000.01122.77
7.4.30.0080.01316.37
7.3.330.0000.00613.29
7.3.320.0000.00513.34
7.3.310.0060.00016.24
7.3.300.0070.00016.33
7.3.290.0090.01216.33
7.3.280.0100.00916.38
7.3.270.0080.00817.40
7.3.260.0090.01218.24
7.3.250.0100.00716.46
7.3.240.0140.00416.44
7.3.230.0030.01316.61
7.3.210.0110.00716.66
7.3.200.0160.00619.39
7.3.190.0060.01216.59
7.3.180.0030.01216.45
7.3.170.0060.00916.59
7.3.160.0090.00616.54
7.2.330.0080.01616.56
7.2.320.0040.01416.56
7.2.310.0160.00916.42
7.2.300.0090.01016.52
7.2.290.0070.01016.68
7.1.70.0800.00616.32
7.1.60.0510.01516.32
7.1.50.0610.00316.32
7.1.40.0480.01416.32
7.1.30.0570.01016.32
7.1.20.0530.01316.32
7.1.10.4020.00716.32
7.1.00.0580.01016.32
7.0.200.0620.00316.32
7.0.190.0620.00616.32
7.0.180.0750.01016.32
7.0.170.0620.01516.32
7.0.160.0660.00616.32
7.0.150.0430.00716.32
7.0.140.0460.01016.32
7.0.130.0370.01216.32
7.0.120.0360.01116.32
7.0.110.0580.01016.32
7.0.100.0540.01116.32
7.0.90.0420.01016.32
7.0.80.0710.00616.32
7.0.70.0550.00016.32
7.0.60.0500.00916.32
7.0.50.0510.00316.32
7.0.40.0080.00416.32
7.0.30.0060.00616.32
7.0.20.0060.00916.32
7.0.10.0110.00816.32
7.0.00.0080.00516.32
5.6.300.0070.05020.94
5.6.290.0100.07820.82
5.6.280.0100.04121.04
5.6.270.0090.04420.89
5.6.260.0110.05321.06
5.6.250.0030.05620.91
5.6.240.0060.06320.96
5.6.230.0060.05420.93
5.6.220.0030.04720.98
5.6.210.0040.04921.03
5.6.200.0060.04820.84
5.6.190.0090.04720.93
5.6.180.0100.04220.84
5.6.170.0100.05520.75
5.6.160.0160.04520.77
5.6.150.0170.07220.84
5.6.140.0100.03820.99
5.6.130.0040.04820.96
5.6.120.0110.04020.86
5.6.110.0120.03720.93
5.6.100.0130.04020.85
5.6.90.0030.04520.84
5.6.80.0070.04120.32
5.6.70.0040.05620.33
5.6.60.0070.05520.21
5.6.50.0070.03720.38
5.6.40.0070.04020.35
5.6.30.0070.04220.18
5.6.20.0070.04020.29
5.6.10.0060.04220.13
5.6.00.0030.05420.16
5.5.380.0070.08217.57
5.5.370.0100.07117.49
5.5.360.0100.06017.52
5.5.350.0070.04317.52
5.5.340.0070.04418.08
5.5.330.0070.03918.03
5.5.320.0130.03818.13
5.5.310.0130.03417.84
5.5.300.0060.04117.82
5.5.290.0070.04018.00
5.5.280.0030.04318.18
5.5.270.0030.05318.08
5.5.260.0000.05018.09
5.5.250.0090.04417.86
5.5.240.0000.04417.10
5.5.230.0000.06217.55
5.5.220.0030.04517.38
5.5.210.0060.03617.47
5.5.200.0030.03817.48
5.5.190.0000.04117.44
5.5.180.0040.04617.36
5.5.160.0030.04517.44
5.5.150.0060.03517.35
5.5.140.0100.03017.03
5.5.130.0030.04217.38
5.5.120.0000.04317.47
5.5.110.0070.03617.03
5.5.100.0000.04717.28
5.5.90.0070.03317.25
5.5.80.0030.03817.32
5.5.70.0130.03217.26
5.5.60.0040.04117.26
5.5.50.0030.05517.32
5.5.40.0060.03517.29
5.5.30.0030.04317.32
5.5.20.0100.03217.08
5.5.10.0060.03517.39
5.5.00.0030.04617.30
5.4.450.0030.04319.40
5.4.440.0070.04119.25
5.4.430.0070.05319.38
5.4.420.0070.05219.30
5.4.410.0000.04619.38
5.4.400.0030.04019.14
5.4.390.0030.03719.20
5.4.380.0070.04418.95
5.4.370.0210.03818.98
5.4.360.0000.04219.13
5.4.350.0070.03819.08
5.4.340.0030.04418.86
5.4.320.0090.04719.07
5.4.310.0000.04919.13
5.4.300.0120.03119.14
5.4.290.0060.03419.05
5.4.280.0030.04118.98
5.4.270.0030.04519.06
5.4.260.0040.03919.08
5.4.250.0030.04319.10
5.4.240.0000.04719.13
5.4.230.0090.03919.05
5.4.220.0000.04519.20
5.4.210.0060.03419.05
5.4.200.0030.04019.06
5.4.190.0100.04219.07
5.4.180.0000.04419.19
5.4.170.0000.04118.88
5.4.160.0070.03718.90
5.4.150.0030.04319.06
5.4.140.0000.04416.77
5.4.130.0060.03316.52
5.4.120.0030.03416.59
5.4.110.0040.04316.65
5.4.100.0110.04316.46
5.4.90.0030.03916.78
5.4.80.0000.03816.71
5.4.70.0030.05116.41
5.4.60.0140.06416.59
5.4.50.0030.03716.71
5.4.40.0060.04016.63
5.4.30.0040.04016.43
5.4.20.0230.02916.38
5.4.10.0030.07716.46
5.4.00.0070.07316.32
5.3.290.0070.03616.32
5.3.280.0000.04816.32
5.3.270.0000.04416.32
5.3.260.0000.04116.32
5.3.250.0060.03816.32
5.3.240.0000.04216.32
5.3.230.0100.03016.32
5.3.220.0000.04416.32
5.3.210.0000.08116.32
5.3.200.0000.04216.32
5.3.190.0060.03716.32
5.3.180.0000.04116.32
5.3.170.0030.04516.32
5.3.160.0000.08216.32
5.3.150.0000.05616.32
5.3.140.0000.04016.32
5.3.130.0030.04016.32
5.3.120.0130.06016.32
5.3.110.0060.04116.32
5.3.100.0120.03716.32
5.3.90.0040.03716.32
5.3.80.0040.04016.32
5.3.70.0070.04116.32
5.3.60.0130.04516.32
5.3.50.0140.02516.32
5.3.40.0060.03516.32
5.3.30.0030.03616.32
5.3.20.0030.05116.32
5.3.10.0070.03116.32
5.3.00.0070.03616.32
5.2.170.0060.02616.32
5.2.160.0100.02616.32
5.2.150.0040.03516.32
5.2.140.0030.02916.32
5.2.130.0130.05016.32
5.2.120.0030.04116.32
5.2.110.0000.03216.32
5.2.100.0130.03916.32
5.2.90.0070.06016.32
5.2.80.0000.06716.32
5.2.70.0070.06316.32
5.2.60.0060.03016.32
5.2.50.0000.03116.32
5.2.40.0130.02916.32
5.2.30.0030.03216.32
5.2.20.0030.03216.32
5.2.10.0000.03916.32
5.2.00.0030.02916.32
5.1.60.0060.02616.32
5.1.50.0040.02516.32
5.1.40.0030.02316.32
5.1.30.0100.02016.32
5.1.20.0030.03516.32
5.1.10.0030.04716.32
5.1.00.0090.02016.32
5.0.50.0040.02116.32
5.0.40.0030.01816.32
5.0.30.0000.04116.32
5.0.20.0030.03416.32
5.0.10.0110.01416.32
5.0.00.0000.03216.32
4.4.90.0030.01616.32
4.4.80.0000.01716.32
4.4.70.0000.02216.32
4.4.60.0000.01616.32
4.4.50.0000.01816.32
4.4.40.0090.02216.32
4.4.30.0000.02716.32
4.4.20.0000.01816.32
4.4.10.0030.01516.32
4.4.00.0030.02716.32
4.3.110.0000.01816.32
4.3.100.0030.01416.32
4.3.90.0030.01616.32
4.3.80.0090.01716.32
4.3.70.0030.01816.32
4.3.60.0030.02116.32
4.3.50.0060.01116.32
4.3.40.0040.02516.32
4.3.30.0000.01916.32
4.3.20.0040.01516.32
4.3.10.0040.02916.32
4.3.00.0000.01816.32

preferences:
38.81 ms | 400 KiB | 5 Q