3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a; protected $b; public $c; protected $e; public $f; } class B extends A { private $a; protected $b; public $c; } $a = new \ReflectionProperty('\B', 'a'); $b = new \ReflectionProperty('\B', 'b'); $c = new \ReflectionProperty('\B', 'c'); $e = new \ReflectionProperty('\B', 'e'); $f = new \ReflectionProperty('\B', 'f'); var_dump($a->class); var_dump($a->getDeclaringClass()->getName()); var_dump($b->class); var_dump($b->getDeclaringClass()->getName()); var_dump($c->class); var_dump($c->getDeclaringClass()->getName()); var_dump($e->class); var_dump($e->getDeclaringClass()->getName()); var_dump($f->class); var_dump($f->getDeclaringClass()->getName());

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.0120.00616.63
8.3.50.0180.00221.89
8.3.40.0130.00718.76
8.3.30.0100.00319.02
8.3.20.0000.00820.34
8.3.10.0080.00023.44
8.3.00.0080.00020.66
8.2.180.0130.00916.75
8.2.170.0100.00722.96
8.2.160.0100.00320.38
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00726.16
8.2.120.0040.00419.18
8.2.110.0080.00022.18
8.2.100.0040.00817.78
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0040.00417.47
8.2.60.0030.00617.80
8.2.50.0000.00918.07
8.2.40.0030.00519.76
8.2.30.0000.00718.32
8.2.20.0050.00517.71
8.2.10.0000.00718.09
8.2.00.0040.00517.69
8.1.280.0030.01425.92
8.1.270.0030.00624.00
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00622.18
8.1.230.0080.00419.15
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0000.01417.00
8.1.190.0040.00417.36
8.1.180.0040.00419.01
8.1.170.0000.00818.33
8.1.160.0040.00421.97
8.1.150.0040.00418.55
8.1.140.0050.00317.41
8.1.130.0000.00717.84
8.1.120.0000.00717.41
8.1.110.0040.00417.40
8.1.100.0000.00817.40
8.1.90.0000.00717.40
8.1.80.0040.00417.27
8.1.70.0000.00717.40
8.1.60.0040.00417.58
8.1.50.0040.00417.48
8.1.40.0070.00017.50
8.1.30.0000.00817.51
8.1.20.0000.00817.60
8.1.10.0050.00217.41
8.1.00.0000.00817.46
8.0.300.0020.00518.77
8.0.290.0070.00017.02
8.0.280.0000.00718.52
8.0.270.0000.00717.13
8.0.260.0030.00317.20
8.0.250.0030.00316.92
8.0.240.0030.00616.79
8.0.230.0070.00016.93
8.0.220.0030.00316.72
8.0.210.0070.00016.81
8.0.200.0030.00316.90
8.0.190.0070.00016.93
8.0.180.0000.00816.94
8.0.170.0040.00416.94
8.0.160.0050.00316.87
8.0.150.0000.00716.82
8.0.140.0040.00416.85
8.0.130.0000.00813.29
8.0.120.0040.00416.70
8.0.110.0020.00516.77
8.0.100.0030.00816.73
8.0.90.0000.00716.72
8.0.80.0060.00916.85
8.0.70.0040.00416.72
8.0.60.0000.00816.72
8.0.50.0040.00416.83
8.0.30.0100.00917.02
8.0.20.0080.01017.40
8.0.10.0000.00717.00
8.0.00.0090.01216.80
7.4.330.0060.00015.00
7.4.320.0070.00016.46
7.4.300.0030.00316.49
7.4.290.0030.00316.49
7.4.280.0060.00316.50
7.4.270.0040.00416.47
7.4.260.0000.00716.45
7.4.250.0050.00216.53
7.4.240.0070.00016.50
7.4.230.0000.00716.57
7.4.220.0170.00316.58
7.4.210.0120.00616.53
7.4.200.0030.00516.66
7.4.190.0080.00016.52
7.4.160.0100.00716.35
7.4.150.0140.00817.40
7.4.140.0070.01017.86
7.4.130.0090.00816.37
7.4.120.0120.00516.39
7.4.110.0080.01216.42
7.4.100.0100.01016.23
7.4.90.0100.01016.41
7.4.80.0060.01819.39
7.4.70.0080.00816.40
7.4.60.0190.00016.45
7.4.50.0030.00316.47
7.4.40.0130.00716.34
7.4.30.0100.00716.54
7.4.00.0030.00914.93
7.3.330.0000.00513.20
7.3.320.0050.00013.06
7.3.310.0000.00816.24
7.3.300.0000.00716.13
7.3.290.0030.01016.30
7.3.280.0090.01216.18
7.3.270.0130.00317.40
7.3.260.0130.01016.36
7.3.250.0160.00816.32
7.3.240.0170.00016.23
7.3.230.0130.01016.39
7.3.210.0100.00716.25
7.3.200.0060.01119.39
7.3.190.0220.00016.21
7.3.180.0130.00316.43
7.3.170.0060.01216.27
7.3.160.0060.01016.18
7.3.120.0060.00914.95
7.2.330.0100.00716.42
7.2.320.0120.00616.30
7.2.310.0070.01816.60
7.2.300.0090.00816.46
7.2.290.0060.01516.41
7.2.00.0030.01219.29
7.1.100.0040.00718.20
7.1.70.0000.01017.21
7.1.60.0060.01919.46
7.1.50.0180.00616.55
7.1.00.0000.08022.57
7.0.200.0040.00416.49
7.0.140.0000.07721.98
7.0.60.0000.08719.88
7.0.50.0100.08317.93
7.0.40.0000.06320.21
7.0.30.0270.08020.07
7.0.20.0270.07720.33
7.0.10.0100.08020.07
7.0.00.0170.06020.14
5.6.280.0000.07320.88
5.6.210.0170.07320.51
5.6.200.0030.05018.16
5.6.190.0070.04320.77
5.6.180.0030.03720.68
5.6.170.0300.03720.47
5.6.160.0000.04320.56
5.6.150.0070.03718.18
5.6.140.0100.08018.23
5.6.130.0070.06318.17
5.6.120.0170.07321.04
5.6.110.0030.05321.11
5.6.100.0100.08021.10
5.6.90.0130.08321.00
5.6.80.0130.07320.38
5.5.350.0030.07020.35
5.5.340.0070.08018.05
5.5.330.0170.07020.34
5.5.320.0030.08720.35
5.5.310.0270.08020.34
5.5.300.0070.06317.98
5.5.290.0030.08317.98
5.5.280.0100.08320.78
5.5.270.0030.07020.77
5.5.260.0070.07320.81
5.5.250.0000.04720.70
5.5.240.0030.08020.36
5.4.450.0230.04019.32
5.4.440.0430.05019.52
5.4.430.0770.05019.38
5.4.420.0770.05019.22
5.4.410.0600.05719.51
5.4.400.1100.06719.00
5.4.390.1000.07318.96
5.4.380.0070.06018.48
5.4.370.0100.06018.71
5.4.360.0170.05318.54
5.4.350.0100.06018.75
5.4.340.0100.06718.63
5.4.320.0040.03812.51
5.4.310.0050.03912.51
5.4.300.0060.04112.51
5.4.290.0070.04012.50
5.4.280.0050.04412.41
5.4.270.0100.04712.40
5.4.260.0090.05012.40
5.4.250.0100.05812.41
5.4.240.0060.05412.41
5.4.230.0130.06512.39
5.4.220.0130.06112.40
5.4.210.0080.04012.39
5.4.200.0050.04312.40
5.4.190.0100.03812.39
5.4.180.0090.04112.40
5.4.170.0070.03712.41
5.4.160.0100.03612.39
5.4.150.0060.04012.40
5.4.140.0070.04612.08
5.4.130.0090.04012.07
5.4.120.0060.04312.03
5.4.110.0070.05312.03
5.4.100.0100.04312.02
5.4.90.0080.05812.02
5.4.80.0120.05212.02
5.4.70.0090.05612.02
5.4.60.0050.05312.02
5.4.50.0060.03612.02
5.4.40.0090.04912.00
5.4.30.0070.06112.00
5.4.20.0050.04312.00
5.4.10.0030.04212.01
5.4.00.0050.04111.49
5.3.290.0060.03912.80
5.3.280.0060.05612.71
5.3.270.0120.05412.72
5.3.260.0090.06712.72
5.3.250.0110.07112.72
5.3.240.0130.06112.72
5.3.230.0060.04912.71
5.3.220.0040.05112.68
5.3.210.0040.04312.68
5.3.200.0050.04912.68
5.3.190.0080.03812.68
5.3.180.0080.04512.68
5.3.170.0080.03512.67
5.3.160.0060.03812.67
5.3.150.0100.03312.67
5.3.140.0090.03412.66
5.3.130.0020.04312.66
5.3.120.0100.03812.66
5.3.110.0060.04612.66
5.3.100.0070.03712.14
5.3.90.0060.04012.12
5.3.80.0050.04112.11
5.3.70.0060.03612.11
5.3.60.0070.03512.10
5.3.50.0060.03612.04
5.3.40.0090.03412.05
5.3.30.0040.03812.01
5.3.20.0010.04111.79
5.3.10.0040.03711.75
5.3.00.0050.03711.74
5.2.170.0070.0369.23
5.2.160.0080.0309.24
5.2.150.0020.0359.23
5.2.140.0100.0279.23
5.2.130.0040.0319.19
5.2.120.0050.0349.20
5.2.110.0070.0289.20
5.2.100.0070.0289.20
5.2.90.0060.0369.20
5.2.80.0050.0339.20
5.2.70.0040.0319.19
5.2.60.0090.0369.14
5.2.50.0060.0389.12
5.2.40.0080.0409.09
5.2.30.0050.0359.07
5.2.20.0070.0279.06
5.2.10.0050.0288.96
5.2.00.0050.0348.83
5.1.60.0040.0248.11
5.1.50.0050.0238.11
5.1.40.0030.0258.10
5.1.30.0040.0278.44
5.1.20.0050.0268.47
5.1.10.0040.0258.18
5.1.00.0050.0248.18
5.0.50.0010.0236.67
5.0.40.0040.0196.53
5.0.30.0030.0436.34
5.0.20.0010.0226.30
5.0.10.0040.0236.29
5.0.00.0050.0306.28
4.4.90.0040.0224.78
4.4.80.0040.0174.75
4.4.70.0020.0214.75
4.4.60.0030.0164.75
4.4.50.0030.0154.77
4.4.40.0030.0314.71
4.4.30.0040.0204.76
4.4.20.0020.0244.84
4.4.10.0050.0194.85
4.4.00.0030.0294.76
4.3.110.0020.0164.67
4.3.100.0010.0174.67
4.3.90.0050.0164.64
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0010.0264.54
4.3.30.0010.0173.30
4.3.20.0010.0193.28
4.3.10.0010.0193.23
4.3.00.0070.01011.58

preferences:
57.16 ms | 401 KiB | 5 Q