3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b; public function __construct(B $b) { $this->b = $b; var_dump($this->b->OMG); } } class B { const OMG = 10; public function __get($name) { return constant("self::" . $name); } } $b = new B(); $a = new A($b);

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.0170.01016.75
8.3.50.0120.00622.17
8.3.40.0120.00318.97
8.3.30.0100.00319.22
8.3.20.0050.00320.13
8.3.10.0030.00523.54
8.3.00.0040.00419.81
8.2.180.0060.00916.63
8.2.170.0040.01122.96
8.2.160.0100.00320.26
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.94
8.2.110.0090.00022.03
8.2.100.0040.00719.68
8.2.90.0060.00319.21
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0090.00018.07
8.2.40.0030.00620.00
8.2.30.0030.00618.13
8.2.20.0080.00017.65
8.2.10.0040.00418.01
8.2.00.0000.00919.43
8.1.280.0080.00825.92
8.1.270.0050.00323.95
8.1.260.0050.00226.35
8.1.250.0030.00528.09
8.1.240.0030.00623.91
8.1.230.0040.00819.15
8.1.220.0080.00017.75
8.1.210.0050.00318.77
8.1.200.0090.00317.36
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0040.00421.96
8.1.150.0000.00718.78
8.1.140.0000.00817.38
8.1.130.0000.00717.75
8.1.120.0000.00717.34
8.1.110.0000.00817.41
8.1.100.0000.00817.32
8.1.90.0040.00417.29
8.1.80.0000.00817.42
8.1.70.0030.00317.38
8.1.60.0050.00317.61
8.1.50.0040.00417.48
8.1.40.0040.00417.43
8.1.30.0000.00817.70
8.1.20.0030.00717.56
8.1.10.0060.00317.59
8.1.00.0040.00417.56
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0040.00418.43
8.0.270.0000.00717.25
8.0.260.0040.00417.13
8.0.250.0070.00017.07
8.0.240.0000.00617.00
8.0.230.0030.00317.00
8.0.220.0030.00416.86
8.0.210.0030.00316.92
8.0.200.0030.00316.89
8.0.190.0040.00417.01
8.0.180.0000.00716.92
8.0.170.0000.00716.86
8.0.160.0030.00417.03
8.0.150.0060.00316.97
8.0.140.0070.00416.97
8.0.130.0000.00613.37
8.0.120.0000.00816.97
8.0.110.0040.00416.86
8.0.100.0000.00716.91
8.0.90.0040.00416.87
8.0.80.0130.00316.77
8.0.70.0070.00016.80
8.0.60.0000.00717.01
8.0.50.0040.00416.96
8.0.30.0080.01117.31
8.0.20.0150.00317.40
8.0.10.0040.00417.04
8.0.00.0120.00916.74
7.4.330.0030.00315.14
7.4.320.0030.00316.41
7.4.300.0000.00616.51
7.4.290.0000.00916.50
7.4.280.0080.00016.49
7.4.270.0040.00416.52
7.4.260.0030.00716.35
7.4.250.0040.00416.53
7.4.240.0040.00416.54
7.4.230.0000.00716.31
7.4.220.0090.00916.63
7.4.210.0070.00716.54
7.4.200.0000.00716.71
7.4.160.0120.00316.62
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0100.00616.54
7.4.120.0060.01316.45
7.4.110.0070.01616.66
7.4.100.0100.01416.40
7.4.90.0100.00716.36
7.4.80.0070.01019.39
7.4.70.0040.01416.53
7.4.60.0110.00616.51
7.4.50.0000.00816.55
7.4.40.0090.00616.30
7.4.30.0110.00716.66
7.4.00.0000.00915.16
7.3.330.0000.00613.30
7.3.320.0030.00313.24
7.3.310.0070.00016.20
7.3.300.0060.00016.16
7.3.290.0030.01216.23
7.3.280.0110.00816.25
7.3.270.0120.00617.40
7.3.260.0130.00416.38
7.3.250.0100.00716.27
7.3.240.0090.01216.48
7.3.230.0100.00716.52
7.3.210.0030.01716.35
7.3.200.0030.01319.39
7.3.190.0030.01916.45
7.3.180.0070.01016.53
7.3.170.0000.01516.46
7.3.160.0100.01016.32
7.3.120.0060.00915.00
7.2.330.0110.01116.41
7.2.320.0030.01716.82
7.2.310.0130.00616.44
7.2.300.0070.01016.55
7.2.290.0070.01016.53
7.1.70.0000.00917.02
7.1.60.0070.01419.70
7.1.50.0110.01116.94
7.1.00.0070.07322.48
7.0.200.0260.00715.02
7.0.140.0100.06322.04
7.0.60.0130.05019.95
7.0.50.0000.09017.86
7.0.40.0100.08320.18
7.0.30.0230.04320.11
7.0.20.0270.07720.20
7.0.10.0130.08020.09
7.0.00.0100.04320.10
5.6.280.0100.06721.11
5.6.210.0030.06320.61
5.6.200.0070.04318.22
5.6.190.0030.06320.57
5.6.180.0200.04020.55
5.6.170.0200.08320.48
5.6.160.0070.04020.50
5.6.150.0070.03718.28
5.6.140.0000.05718.12
5.6.130.0000.08018.16
5.6.120.0030.04320.99
5.6.110.0100.08021.15
5.6.100.0030.08721.00
5.6.90.0030.04021.13
5.6.80.0100.03020.51
5.5.350.2270.03720.40
5.5.340.0100.07718.09
5.5.330.0070.04020.19
5.5.320.0130.04720.35
5.5.310.0330.05720.23
5.5.300.0000.04017.98
5.5.290.0030.08317.95
5.5.280.0030.05720.97
5.5.270.0100.08320.68
5.5.260.0070.08720.84
5.5.250.0100.08020.71
5.5.240.0170.07320.16
5.4.450.0370.04719.46
5.4.440.0300.03319.56
5.4.430.0530.04319.16
5.4.420.0530.03019.41
5.4.410.0600.03719.29
5.4.400.0100.04319.25
5.4.390.0300.04319.31
5.4.380.0000.06718.65
5.4.370.0100.05718.63
5.4.360.0200.04718.68
5.4.350.0170.05018.68
5.4.340.0100.05718.48
5.4.320.0050.03512.51
5.4.310.0070.04312.50
5.4.300.0040.04612.50
5.4.290.0050.04812.50
5.4.280.0070.04112.39
5.4.270.0100.04912.39
5.4.260.0060.05312.39
5.4.250.0140.08412.40
5.4.240.0090.04212.40
5.4.230.0070.05212.39
5.4.220.0060.04312.39
5.4.210.0120.05812.39
5.4.200.0140.08212.39
5.4.190.0150.06512.38
5.4.180.0060.03812.38
5.4.170.0070.03912.40
5.4.160.0040.04512.39
5.4.150.0090.05512.39
5.4.140.0050.05712.07
5.4.130.0130.06712.06
5.4.120.0300.09412.02
5.4.110.0120.06712.02
5.4.100.0100.03812.02
5.4.90.0110.07212.02
5.4.80.0150.06312.02
5.4.70.0080.04812.01
5.4.60.0150.07812.02
5.4.50.0090.04112.02
5.4.40.0130.06612.00
5.4.30.0130.06712.00
5.4.20.0090.04312.00
5.4.10.0150.10012.00
5.4.00.0170.05211.49
5.3.290.0020.04312.80
5.3.280.0080.05012.71
5.3.270.0190.07412.72
5.3.260.0120.05912.71
5.3.250.0170.07312.72
5.3.240.0340.09712.72
5.3.230.0130.05312.71
5.3.220.0090.05112.68
5.3.210.0070.04412.68
5.3.200.0070.04212.68
5.3.190.0120.05612.68
5.3.180.0070.04712.67
5.3.170.0160.06612.67
5.3.160.0120.08212.67
5.3.150.0130.06112.67
5.3.140.0140.05512.66
5.3.130.0090.04812.66
5.3.120.0120.05312.66
5.3.110.0100.04412.66
5.3.100.0080.04012.13
5.3.90.0060.04112.11
5.3.80.0070.03712.09
5.3.70.0070.03812.10
5.3.60.0070.04112.08
5.3.50.0100.03812.04
5.3.40.0070.04112.03
5.3.30.0090.03612.00
5.3.20.0090.03611.77
5.3.10.0070.03811.73
5.3.00.0080.04111.72
5.2.170.0050.0339.22
5.2.160.0040.0339.23
5.2.150.0060.0379.22
5.2.140.0040.0379.22
5.2.130.0070.0329.18
5.2.120.0110.0319.18
5.2.110.0080.0329.19
5.2.100.0070.0349.18
5.2.90.0060.0309.18
5.2.80.0060.0309.18
5.2.70.0060.0319.18
5.2.60.0080.0299.13
5.2.50.0090.0289.10
5.2.40.0080.0269.07
5.2.30.0060.0309.05
5.2.20.0020.0349.04
5.2.10.0130.0248.95
5.2.00.0030.0358.81
5.1.60.0070.0248.09
5.1.50.0050.0278.09
5.1.40.0080.0278.07
5.1.30.0050.0358.42
5.1.20.0050.0368.44
5.1.10.0070.0268.16
5.1.00.0030.0308.16
5.0.50.0040.0226.64
5.0.40.0040.0286.50
5.0.30.0030.0366.32
5.0.20.0030.0216.28
5.0.10.0070.0176.26
5.0.00.0050.0506.25
4.4.90.0040.0174.78
4.4.80.0030.0184.76
4.4.70.0030.0214.75
4.4.60.0040.0204.75
4.4.50.0050.0204.77
4.4.40.0050.0264.70
4.4.30.0050.0264.76
4.4.20.0090.0514.84
4.4.10.0050.0194.85
4.4.00.0030.0374.76
4.3.110.0100.0254.67
4.3.100.0030.0254.67
4.3.90.0150.0354.63
4.3.80.0050.0444.58
4.3.70.0080.0394.63
4.3.60.0100.0244.62
4.3.50.0060.0304.63
4.3.40.0030.0314.54
4.3.30.0090.0353.30
4.3.20.0050.0403.28
4.3.10.0090.0283.24
4.3.00.0000.01710.75

preferences:
35.07 ms | 401 KiB | 5 Q