3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public $p; public function &__get($n) { return $this->p; } } $first = new C; $first->p = 'init'; $clone = clone $first; $clone->p = $first->magic; $clone = clone $first; $clone->p = 'foo'; var_dump($first->v);

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.0130.00718.31
8.3.50.0070.01416.44
8.3.40.0150.00418.82
8.3.30.0070.00718.92
8.3.20.0050.00220.34
8.3.10.0000.00723.52
8.3.00.0030.01019.26
8.2.180.0100.01016.63
8.2.170.0130.00622.96
8.2.160.0070.01420.32
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00022.30
8.2.110.0040.00420.11
8.2.100.0090.00618.09
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0060.00317.80
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0030.00517.90
8.2.20.0030.00517.48
8.2.10.0070.00017.99
8.2.00.0000.00917.62
8.1.280.0100.01025.92
8.1.270.0060.00323.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00524.01
8.1.230.0050.00519.04
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0000.01018.47
8.1.160.0040.00422.00
8.1.150.0040.00418.86
8.1.140.0000.00717.31
8.1.130.0040.00417.83
8.1.120.0070.00017.43
8.1.110.0040.00417.34
8.1.100.0040.00417.30
8.1.90.0000.00717.29
8.1.80.0040.00417.45
8.1.70.0070.00017.32
8.1.60.0000.00817.57
8.1.50.0000.00817.45
8.1.40.0080.00017.52
8.1.30.0040.00417.54
8.1.20.0040.00417.63
8.1.10.0000.00717.49
8.1.00.0020.00517.46
8.0.300.0000.00818.77
8.0.290.0050.00316.63
8.0.280.0070.00018.39
8.0.270.0030.00317.19
8.0.260.0000.00617.18
8.0.250.0030.00316.96
8.0.240.0000.00716.86
8.0.230.0030.00316.91
8.0.220.0030.00316.83
8.0.210.0000.00616.73
8.0.200.0050.00516.79
8.0.190.0000.00816.82
8.0.180.0000.00716.79
8.0.170.0040.00416.83
8.0.160.0040.00416.83
8.0.150.0000.00716.71
8.0.140.0040.00416.79
8.0.130.0000.00513.18
8.0.120.0040.00416.71
8.0.110.0000.00716.75
8.0.100.0000.00816.89
8.0.90.0000.00716.82
8.0.80.0130.00316.79
8.0.70.0040.00416.80
8.0.60.0000.00816.79
8.0.50.0040.00416.90
8.0.30.0130.00717.04
8.0.20.0030.01617.40
8.0.10.0000.00716.80
8.0.00.0100.00716.71
7.4.330.0000.00515.00
7.4.320.0000.00716.45
7.4.300.0030.00316.52
7.4.290.0000.00716.60
7.4.280.0000.00816.61
7.4.270.0070.00016.62
7.4.260.0000.00816.58
7.4.250.0040.00416.46
7.4.240.0060.00216.45
7.4.230.0030.00316.49
7.4.220.0070.01116.70
7.4.210.0030.01216.55
7.4.200.0040.00416.54
7.4.160.0060.00916.47
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0080.00816.62
7.4.120.0040.01316.51
7.4.110.0060.01216.60
7.4.100.0070.01016.36
7.4.90.0030.01416.36
7.4.80.0070.01019.39
7.4.70.0110.01216.32
7.4.60.0080.00816.40
7.4.50.0030.00616.44
7.4.40.0070.01316.51
7.4.30.0070.01016.33
7.4.00.0030.01314.94
7.3.330.0000.00613.14
7.3.320.0050.00013.14
7.3.310.0040.00416.20
7.3.300.0040.00416.19
7.3.290.0110.00416.21
7.3.280.0100.00916.27
7.3.270.0130.00317.40
7.3.260.0060.01216.35
7.3.250.0100.00816.34
7.3.240.0130.00916.38
7.3.230.0130.00316.39
7.3.210.0100.00616.61
7.3.200.0110.00719.39
7.3.190.0100.00616.46
7.3.180.0130.00316.28
7.3.170.0090.00616.30
7.3.160.0120.00316.38
7.2.330.0150.00916.21
7.2.320.0100.00716.57
7.2.310.0070.01516.50
7.2.300.0060.01016.70
7.2.290.0120.00416.70
7.2.60.0070.00716.81
7.2.00.0060.00619.50
7.1.200.0030.01015.76
7.1.100.0040.00717.98
7.1.70.0030.00316.90
7.1.60.0070.01819.32
7.1.50.0090.01216.70
7.1.00.0030.07722.36
7.0.200.0030.00616.87
7.0.140.0070.06322.18
7.0.60.0030.08720.00
7.0.50.0130.07017.97
7.0.40.0130.05020.23
7.0.30.0470.06720.09
7.0.20.0230.09020.24
7.0.10.0070.07320.10
7.0.00.0070.06020.24
5.6.280.0030.07720.93
5.6.210.0200.07320.51
5.6.200.0070.08318.22
5.6.190.0070.04720.45
5.6.180.0430.04320.48
5.6.170.0300.04320.55
5.6.160.0100.08020.57
5.6.150.0070.08718.30
5.6.140.0100.08018.18
5.6.130.0000.08718.25
5.6.120.0130.04721.10
5.6.110.0030.08321.02
5.6.100.0130.06721.02
5.6.90.0030.07320.97
5.6.80.0100.06020.35
5.5.350.0130.07020.41
5.5.340.0070.05318.03
5.5.330.0030.06720.21
5.5.320.0330.07720.32
5.5.310.0230.08020.39
5.5.300.0030.05318.01
5.5.290.0100.08017.93
5.5.280.0030.09020.68
5.5.270.0070.06020.74
5.5.260.0070.07020.80
5.5.250.0070.06720.59
5.5.240.0100.03320.16
5.4.450.0130.03319.57
5.4.440.0730.02719.47
5.4.430.0330.04319.32
5.4.420.0700.00019.41
5.4.410.0630.00019.53
5.4.400.0670.00018.94
5.4.390.0630.00019.16
5.4.380.0630.00019.13
5.4.370.0670.00019.12
5.4.360.0630.00019.05
5.4.350.0630.00019.25
5.4.340.0070.03812.02
5.4.320.0070.03912.50
5.4.310.0080.03612.50
5.4.300.0090.03812.50
5.4.290.0020.04412.50
5.4.280.0050.04012.39
5.4.270.0060.04112.39
5.4.260.0060.04212.39
5.4.250.0070.03712.40
5.4.240.0060.03612.39
5.4.230.0060.04112.39
5.4.220.0050.03612.39
5.4.210.0090.03212.38
5.4.200.0070.03812.39
5.4.190.0090.03612.39
5.4.180.0060.03612.38
5.4.170.0050.03712.40
5.4.160.0050.04312.39
5.4.150.0070.03512.39
5.4.140.0080.04112.07
5.4.130.0070.03712.06
5.4.120.0070.03412.01
5.4.110.0070.03712.01
5.4.100.0110.03812.02
5.4.90.0100.03712.02
5.4.80.0050.03812.01
5.4.70.0070.04012.00
5.4.60.0050.04512.01
5.4.50.0040.03812.01
5.4.40.0030.04011.99
5.4.30.0050.03711.99
5.4.20.0070.03512.00
5.4.10.0070.03411.99
5.4.00.0040.03811.48
5.3.290.0080.03712.80
5.3.280.0050.03912.71
5.3.270.0070.03912.72
5.3.260.0090.03912.71
5.3.250.0080.04312.71
5.3.240.0070.03512.72
5.3.230.0090.03512.71
5.3.220.0040.03912.68
5.3.210.0060.03912.68
5.3.200.0070.04212.68
5.3.190.0040.03912.68
5.3.180.0100.03512.67
5.3.170.0050.04112.67
5.3.160.0070.03612.67
5.3.150.0080.03512.68
5.3.140.0070.03512.66
5.3.130.0090.04412.66
5.3.120.0080.04112.66
5.3.110.0050.03912.66
5.3.100.0030.03912.11
5.3.90.0080.03312.10
5.3.80.0100.03212.09
5.3.70.0110.03712.09
5.3.60.0060.03912.07
5.3.50.0090.03612.02
5.3.40.0050.04112.03
5.3.30.0070.03511.98
5.3.20.0060.03511.77
5.3.10.0060.03411.73
5.3.00.0040.03711.71
5.2.170.0040.0369.22
5.2.160.0080.0289.22
5.2.150.0070.0319.22
5.2.140.0080.0339.22
5.2.130.0040.0319.18
5.2.120.0060.0279.18
5.2.110.0060.0289.18
5.2.100.0020.0369.18
5.2.90.0040.0339.18
5.2.80.0060.0349.17
5.2.70.0030.0329.18
5.2.60.0040.0319.13
5.2.50.0070.0289.09
5.2.40.0030.0309.07
5.2.30.0090.0289.05
5.2.20.0050.0299.04
5.2.10.0070.0278.94
5.2.00.0070.0298.80
5.1.60.0050.0308.09
5.1.50.0040.0258.08
5.1.40.0050.0248.07
5.1.30.0030.0278.41
5.1.20.0040.0268.44
5.1.10.0040.0258.16
5.1.00.0080.0278.16
5.0.50.0030.0266.64
5.0.40.0040.0246.50
5.0.30.0060.0306.31
5.0.20.0020.0236.28
5.0.10.0030.0236.25
5.0.00.0040.0306.25
4.4.90.0030.0184.78
4.4.80.0030.0154.76
4.4.70.0020.0164.75
4.4.60.0030.0164.76
4.4.50.0010.0174.77
4.4.40.0040.0244.71
4.4.30.0060.0144.76
4.4.20.0060.0144.84
4.4.10.0030.0174.85
4.4.00.0010.0274.75
4.3.110.0040.0154.67
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0010.0284.58
4.3.70.0040.0144.63
4.3.60.0020.0164.63
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0010.0173.30
4.3.20.0030.0173.28
4.3.10.0040.0143.23
4.3.00.0230.02010.58

preferences:
78.32 ms | 400 KiB | 5 Q