3v4l.org

run code in 300+ PHP versions simultaneously
<?php class example{ /*Member variables*/ protected $a; public $c = array(); protected $b = array(); public function &__get($name) { return $this->$name; } public function __set($name, $value) { $this->$name = $value; } } $fun = new example(); $x = $fun->c; $x[] = 42; var_dump($fun->c);

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.0100.00316.75
8.3.50.0080.01121.95
8.3.40.0040.01118.63
8.3.30.0100.00319.04
8.3.20.0080.00020.07
8.3.10.0040.00423.48
8.3.00.0000.01117.46
8.2.180.0130.00618.54
8.2.170.0110.00422.96
8.2.160.0130.00720.38
8.2.150.0110.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00822.27
8.2.110.0080.00021.98
8.2.100.0080.00317.78
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0080.00317.50
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0000.00819.90
8.2.30.0040.00417.93
8.2.20.0040.00417.67
8.2.10.0040.00417.93
8.2.00.0000.00817.66
8.1.280.0130.00725.92
8.1.270.0040.00423.66
8.1.260.0000.00826.35
8.1.250.0110.00728.09
8.1.240.0090.00023.98
8.1.230.0040.00718.96
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.39
8.1.180.0030.00718.10
8.1.170.0030.00618.40
8.1.160.0000.00822.03
8.1.150.0000.00718.57
8.1.140.0030.00517.38
8.1.130.0000.00817.86
8.1.120.0080.00017.36
8.1.110.0070.00017.35
8.1.100.0030.00517.41
8.1.90.0000.00817.32
8.1.80.0040.00417.28
8.1.70.0030.00317.28
8.1.60.0090.00017.40
8.1.50.0080.00017.46
8.1.40.0040.00417.43
8.1.30.0040.00417.41
8.1.20.0050.00217.63
8.1.10.0000.00717.50
8.1.00.0040.00417.45
8.0.300.0030.00620.73
8.0.290.0000.00717.05
8.0.280.0040.00418.36
8.0.270.0000.00717.16
8.0.260.0060.00017.19
8.0.250.0000.00716.86
8.0.240.0000.00816.82
8.0.230.0030.00516.74
8.0.220.0000.00616.79
8.0.210.0000.00716.72
8.0.200.0000.00616.98
8.0.190.0050.00316.90
8.0.180.0090.00316.81
8.0.170.0040.00416.89
8.0.160.0050.00316.78
8.0.150.0070.00016.75
8.0.140.0040.00416.81
8.0.130.0060.00313.26
8.0.120.0050.00316.80
8.0.110.0040.00416.78
8.0.100.0000.00716.70
8.0.90.0000.00716.69
8.0.80.0110.00716.81
8.0.70.0040.00416.79
8.0.60.0070.00016.65
8.0.50.0040.00416.64
8.0.30.0120.00916.84
8.0.20.0070.01117.40
8.0.10.0040.00416.73
8.0.00.0070.01316.59
7.4.330.0000.00515.09
7.4.320.0000.00616.36
7.4.300.0000.00616.42
7.4.290.0000.00816.54
7.4.280.0030.00316.41
7.4.270.0050.00216.45
7.4.260.0000.00716.43
7.4.250.0050.00316.41
7.4.240.0000.00716.56
7.4.230.0030.00316.57
7.4.220.0060.01216.60
7.4.210.0060.00916.52
7.4.200.0030.00316.51
7.4.190.0050.00216.50
7.4.160.0120.01216.41
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0100.00716.48
7.4.120.0130.00416.54
7.4.110.0100.01316.47
7.4.100.0150.00316.63
7.4.90.0130.00316.34
7.4.80.0060.01019.39
7.4.70.0090.00816.52
7.4.60.0040.01416.28
7.4.50.0060.00316.26
7.4.40.0090.01316.50
7.4.30.0080.00816.41
7.4.00.0140.00314.78
7.3.330.0000.00513.09
7.3.320.0060.00013.07
7.3.310.0070.00016.27
7.3.300.0070.00016.34
7.3.290.0030.01016.30
7.3.280.0100.00816.20
7.3.270.0100.00717.40
7.3.260.0170.00016.23
7.3.250.0120.00516.38
7.3.240.0150.00416.29
7.3.230.0100.00716.39
7.3.210.0070.01016.46
7.3.200.0150.00319.39
7.3.190.0090.00916.32
7.3.180.0120.00416.20
7.3.170.0100.01016.40
7.3.160.0070.01016.69
7.3.120.0040.01214.88
7.2.330.0130.00516.48
7.2.320.0070.01216.64
7.2.310.0040.01916.71
7.2.300.0060.01016.46
7.2.290.0090.01316.41
7.1.70.0030.00616.96
7.1.60.0070.00316.86
7.1.50.0030.01416.87
7.1.00.0070.07022.54
7.0.200.0030.01016.67
7.0.140.0070.07022.07
7.0.60.0030.06320.03
7.0.50.0030.04717.82
7.0.40.0130.08020.04
7.0.30.0500.05020.13
7.0.20.0300.07720.10
7.0.10.0070.06020.23
7.0.00.0000.07720.29
5.6.280.0030.07321.13
5.6.210.0030.06020.52
5.6.200.0070.08018.18
5.6.190.0100.09020.61
5.6.180.0430.05320.50
5.6.170.0230.08020.57
5.6.160.0070.08720.46
5.6.150.0070.04718.28
5.6.140.0030.05018.16
5.6.130.0030.07718.18
5.6.120.0070.06720.97
5.6.110.0100.08020.95
5.6.100.0170.08021.12
5.6.90.0100.05720.97
5.6.80.0030.03720.41
5.5.350.0300.08020.41
5.5.340.0000.09018.04
5.5.330.0070.04320.23
5.5.320.0330.04720.30
5.5.310.0200.08720.33
5.5.300.0030.04017.92
5.5.290.0030.05717.95
5.5.280.0030.07320.80
5.5.270.0070.07020.77
5.5.260.0030.08720.88
5.5.250.0070.04320.50
5.5.240.0230.07720.28
5.4.450.0300.04019.55
5.4.440.0830.02319.32
5.4.430.0400.04719.41
5.4.420.1130.03719.30
5.4.410.0700.03319.39
5.4.400.0700.03718.95
5.4.390.0500.04019.24
5.4.380.0900.06018.75
5.4.370.1200.05318.73
5.4.360.1100.04718.48
5.4.350.0970.06718.54
5.4.340.0930.06018.74
5.4.320.0060.03612.50
5.4.310.0040.03912.50
5.4.300.0080.03612.50
5.4.290.0030.04012.48
5.4.280.0140.07112.38
5.4.270.0060.03912.38
5.4.260.0100.03512.38
5.4.250.0040.04012.38
5.4.240.0070.03612.38
5.4.230.0080.03712.38
5.4.220.0050.03812.38
5.4.210.0060.03712.38
5.4.200.0070.03812.38
5.4.190.0070.03812.37
5.4.180.0080.03812.37
5.4.170.0080.03612.39
5.4.160.0040.03712.38
5.4.150.0090.04412.38
5.4.140.0060.04012.06
5.4.130.0070.03912.04
5.4.120.0050.03812.00
5.4.110.0050.03612.00
5.4.100.0050.03712.00
5.4.90.0100.04512.00
5.4.80.0120.04412.00
5.4.70.0070.05212.00
5.4.60.0070.04612.00
5.4.50.0060.03612.00
5.4.40.0090.03411.98
5.4.30.0040.03811.98
5.4.20.0070.03511.98
5.4.10.0080.03411.98
5.4.00.0080.03511.47
5.3.290.0070.03812.80
5.3.280.0060.04012.71
5.3.270.0090.03912.73
5.3.260.0060.03912.72
5.3.250.0100.03512.72
5.3.240.0050.04312.72
5.3.230.0040.04012.71
5.3.220.0040.04512.68
5.3.210.0050.04212.68
5.3.200.0040.03912.68
5.3.190.0080.05012.68
5.3.180.0120.04512.68
5.3.170.0150.04712.67
5.3.160.0120.04412.68
5.3.150.0100.04412.67
5.3.140.0170.05812.66
5.3.130.0050.05712.66
5.3.120.0060.05612.65
5.3.110.0070.05512.66
5.3.100.0120.06212.12
5.3.90.0120.05612.11
5.3.80.0070.05012.09
5.3.70.0070.04612.09
5.3.60.0100.05212.08
5.3.50.0140.06712.03
5.3.40.0130.05312.02
5.3.30.0070.04511.98
5.3.20.0050.05711.77
5.3.10.0140.06011.73
5.3.00.0080.06111.72
5.2.170.0060.0349.22
5.2.160.0050.0439.22
5.2.150.0090.0359.22
5.2.140.0090.0339.22
5.2.130.0070.0319.18
5.2.120.0050.0339.18
5.2.110.0090.0309.19
5.2.100.0070.0419.18
5.2.90.0080.0399.19
5.2.80.0090.0399.18
5.2.70.0040.0379.18
5.2.60.0070.0349.13
5.2.50.0070.0369.10
5.2.40.0260.0589.08
5.2.30.0060.0349.05
5.2.20.0140.0349.04
5.2.10.0100.0358.95
5.2.00.0110.0288.81
5.1.60.0070.0258.09
5.1.50.0090.0308.09
5.1.40.0060.0288.07
5.1.30.0260.0358.42
5.1.20.0060.0378.43
5.1.10.0040.0518.16
5.1.00.0040.0398.17
5.0.50.0040.0516.64
5.0.40.0050.0276.51
5.0.30.0080.0386.32
5.0.20.0050.0216.29
5.0.10.0050.0286.26
5.0.00.0010.0346.25
4.4.90.0030.0174.78
4.4.80.0020.0164.75
4.4.70.0020.0334.75
4.4.60.0060.0184.75
4.4.50.0020.0324.77
4.4.40.0040.0344.71
4.4.30.0030.0184.76
4.4.20.0040.0174.85
4.4.10.0030.0184.85
4.4.00.0040.0264.76
4.3.110.0030.0174.67
4.3.100.0060.0214.67
4.3.90.0020.0164.64
4.3.80.0030.0254.59
4.3.70.0020.0164.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0030.0153.30
4.3.20.0000.0183.28
4.3.10.0030.0163.23
4.3.00.0170.01016.04

preferences:
29.69 ms | 401 KiB | 5 Q