3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a; protected $b; public $c; } 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'); 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());

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.0140.00716.63
8.3.50.0120.00521.96
8.3.40.0170.00718.61
8.3.30.0070.00718.92
8.3.20.0000.00820.22
8.3.10.0040.00423.71
8.3.00.0050.00320.89
8.2.180.0150.00016.75
8.2.170.0100.00722.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.03
8.2.110.0060.00322.11
8.2.100.0080.00417.91
8.2.90.0000.00719.22
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0050.00317.90
8.2.50.0060.00318.07
8.2.40.0030.00519.75
8.2.30.0000.00718.25
8.2.20.0040.00417.54
8.2.10.0000.00717.91
8.2.00.0040.00417.54
8.1.280.0070.00725.92
8.1.270.0070.00720.36
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0090.00023.87
8.1.230.0080.00318.97
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0040.00418.88
8.1.170.0040.00418.59
8.1.160.0020.00521.95
8.1.150.0080.00018.58
8.1.140.0060.00317.39
8.1.130.0030.00317.83
8.1.120.0030.00317.29
8.1.110.0040.00417.39
8.1.100.0040.00417.32
8.1.90.0000.00717.46
8.1.80.0000.00817.42
8.1.70.0000.00717.34
8.1.60.0040.00417.36
8.1.50.0000.00817.38
8.1.40.0000.00817.46
8.1.30.0050.00317.63
8.1.20.0040.00417.50
8.1.10.0000.00817.51
8.1.00.0080.00017.31
8.0.300.0030.00618.77
8.0.290.0030.00317.04
8.0.280.0000.00818.29
8.0.270.0030.00617.21
8.0.260.0030.00517.07
8.0.250.0000.00716.91
8.0.240.0090.00016.79
8.0.230.0030.00316.93
8.0.220.0030.00616.88
8.0.210.0040.00416.83
8.0.200.0030.00316.88
8.0.190.0050.00216.76
8.0.180.0040.00416.82
8.0.170.0080.00016.88
8.0.160.0000.00716.71
8.0.150.0040.00416.75
8.0.140.0000.00716.70
8.0.130.0000.00613.35
8.0.120.0000.00816.77
8.0.110.0040.00416.73
8.0.100.0000.01016.57
8.0.90.0020.00516.70
8.0.80.0100.00716.82
8.0.70.0000.00816.85
8.0.60.0040.00416.83
8.0.50.0040.00416.89
8.0.30.0090.01217.04
8.0.20.0160.00417.40
8.0.10.0030.00516.98
8.0.00.0070.01116.86
7.4.330.0000.00615.01
7.4.320.0030.00316.54
7.4.300.0030.00316.63
7.4.290.0060.00016.51
7.4.280.0000.00816.39
7.4.270.0030.00316.41
7.4.260.0030.00316.45
7.4.250.0000.00816.45
7.4.240.0000.00716.40
7.4.230.0070.00016.20
7.4.220.0130.00716.50
7.4.210.0070.00716.51
7.4.200.0000.00716.52
7.4.190.0000.00716.70
7.4.160.0100.00616.46
7.4.150.0130.00917.40
7.4.140.0090.00817.86
7.4.130.0060.01016.41
7.4.120.0120.00816.47
7.4.110.0100.01316.33
7.4.100.0070.01116.32
7.4.90.0030.01416.15
7.4.80.0160.00719.39
7.4.70.0030.01316.46
7.4.60.0090.00916.36
7.4.50.0000.00416.50
7.4.40.0070.01016.41
7.4.30.0080.00816.50
7.4.00.0060.00614.57
7.3.330.0040.00213.14
7.3.320.0030.00313.07
7.3.310.0000.00716.09
7.3.300.0000.00616.18
7.3.290.0040.01116.19
7.3.280.0080.00916.18
7.3.270.0100.00717.40
7.3.260.0100.01016.45
7.3.250.0130.01016.21
7.3.240.0150.00916.54
7.3.230.0120.00416.41
7.3.210.0070.01416.11
7.3.200.0070.01419.39
7.3.190.0110.01116.49
7.3.180.0070.01016.40
7.3.170.0130.00716.27
7.3.160.0080.00816.36
7.3.120.0090.00614.77
7.2.330.0100.01516.30
7.2.320.0110.00616.40
7.2.310.0080.01516.64
7.2.300.0090.00916.77
7.2.290.0140.00716.71
7.2.80.0070.00716.78
7.2.00.0080.00819.50
7.1.200.0030.01015.76
7.1.100.0040.00717.99
7.1.70.0030.00917.09
7.1.60.0060.01219.46
7.1.50.0210.00016.84
7.1.00.0070.07322.40
7.0.200.0000.01216.55
7.0.140.0070.07021.95
7.0.60.0100.05321.59
7.0.50.0000.06717.91
7.0.40.0030.07320.24
7.0.30.0300.06020.16
7.0.20.0300.08020.15
7.0.10.0270.08020.08
7.0.00.0000.07720.15
5.6.280.0100.06721.10
5.6.210.0130.06020.53
5.6.200.0030.07718.25
5.6.190.0070.08720.50
5.6.180.3070.04720.38
5.6.170.0270.09020.51
5.6.160.0070.08320.54
5.6.150.0070.05018.27
5.6.140.0130.04718.21
5.6.130.0070.04018.17
5.6.120.0030.08721.00
5.6.110.0070.08321.01
5.6.100.0100.06720.89
5.6.90.0100.07721.02
5.6.80.0030.08020.54
5.5.350.0030.08020.47
5.5.340.0070.04018.09
5.5.330.0030.04720.41
5.5.320.0000.05020.43
5.5.310.0270.07320.30
5.5.300.0100.06317.92
5.5.290.0070.08717.99
5.5.280.0130.04320.90
5.5.270.0170.06720.64
5.5.260.0030.07720.97
5.5.250.0200.04720.68
5.5.240.0100.07020.27
5.4.450.0670.05319.31
5.4.440.0930.05319.71
5.4.430.0900.04719.57
5.4.420.0630.00019.42
5.4.410.0230.07019.00
5.4.400.0230.06318.54
5.4.390.0300.05718.80
5.4.380.0130.06018.61
5.4.370.0200.02718.61
5.4.360.0100.03318.80
5.4.350.0070.03512.02
5.4.340.0060.03712.02
5.4.320.0040.03812.50
5.4.310.0060.03712.49
5.4.300.0060.03612.50
5.4.290.0120.05512.50
5.4.280.0080.04312.39
5.4.270.0080.04012.39
5.4.260.0090.06712.39
5.4.250.0040.04412.39
5.4.240.0080.03812.39
5.4.230.0130.08012.39
5.4.220.0130.05112.39
5.4.210.0060.05512.38
5.4.200.0110.05212.39
5.4.190.0080.04912.38
5.4.180.0100.03712.38
5.4.170.0050.05712.40
5.4.160.0090.05012.39
5.4.150.0130.07012.39
5.4.140.0150.06612.07
5.4.130.0070.06512.06
5.4.120.0120.05712.02
5.4.110.0060.06312.01
5.4.100.0130.06912.01
5.4.90.0120.06912.01
5.4.80.0090.04412.01
5.4.70.0090.04112.01
5.4.60.0080.04512.01
5.4.50.0140.06312.01
5.4.40.0080.04212.00
5.4.30.0080.04312.00
5.4.20.0050.04112.00
5.4.10.0160.04711.99
5.4.00.0100.04111.48
5.3.290.0060.04012.80
5.3.280.0130.04312.70
5.3.270.0100.04912.72
5.3.260.0130.04212.72
5.3.250.0070.04412.72
5.3.240.0110.03812.72
5.3.230.0100.04712.71
5.3.220.0110.03812.68
5.3.210.0070.05712.68
5.3.200.0090.05112.68
5.3.190.0040.05612.68
5.3.180.0080.05412.67
5.3.170.0120.05612.67
5.3.160.0120.06312.68
5.3.150.0130.04412.68
5.3.140.0120.04112.66
5.3.130.0060.04812.66
5.3.120.0160.07512.66
5.3.110.0090.04512.66
5.3.100.0100.06012.13
5.3.90.0060.05512.11
5.3.80.0110.04612.10
5.3.70.0060.05112.10
5.3.60.0060.05112.08
5.3.50.0040.05212.03
5.3.40.0060.05612.04
5.3.30.0060.05311.99
5.3.20.0070.03811.78
5.3.10.0100.04811.74
5.3.00.0070.04011.73
5.2.170.0070.0449.23
5.2.160.0050.0349.23
5.2.150.0030.0329.23
5.2.140.0090.0279.23
5.2.130.0050.0439.19
5.2.120.0070.0409.18
5.2.110.0060.0399.19
5.2.100.0060.0329.19
5.2.90.0060.0289.19
5.2.80.0040.0319.18
5.2.70.0090.0359.18
5.2.60.0060.0379.14
5.2.50.0020.0329.10
5.2.40.0060.0279.08
5.2.30.0060.0289.05
5.2.20.0050.0289.05
5.2.10.0040.0318.95
5.2.00.0060.0318.82
5.1.60.0020.0278.10
5.1.50.0010.0288.10
5.1.40.0070.0318.08
5.1.30.0060.0378.43
5.1.20.0120.0308.45
5.1.10.0050.0258.18
5.1.00.0040.0278.18
5.0.50.0060.0216.66
5.0.40.0020.0246.52
5.0.30.0050.0326.33
5.0.20.0020.0236.30
5.0.10.0050.0206.28
5.0.00.0040.0326.27
4.4.90.0060.0144.78
4.4.80.0030.0214.75
4.4.70.0030.0234.75
4.4.60.0010.0234.76
4.4.50.0040.0174.77
4.4.40.0050.0274.71
4.4.30.0050.0174.76
4.4.20.0030.0184.85
4.4.10.0010.0214.85
4.4.00.0010.0274.76
4.3.110.0050.0174.67
4.3.100.0030.0144.66
4.3.90.0020.0174.63
4.3.80.0040.0234.58
4.3.70.0040.0204.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0020.0284.54
4.3.30.0010.0173.30
4.3.20.0040.0143.28
4.3.10.0010.0173.24
4.3.00.0000.0276.61

preferences:
45.67 ms | 401 KiB | 5 Q