3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a; protected $b; public $c; private $d; 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'); $d = new \ReflectionProperty('\B', 'd'); $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($d->class); var_dump($d->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.70.0110.00716.63
8.3.60.0160.00316.47
8.3.50.0170.00721.80
8.3.40.0070.00718.97
8.3.30.0080.00619.10
8.3.20.0050.00320.16
8.3.10.0040.00423.61
8.3.00.0040.00420.89
8.2.180.0090.00916.88
8.2.170.0140.00422.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00819.21
8.2.110.0060.00322.26
8.2.100.0080.00417.72
8.2.90.0050.00319.25
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0050.00319.76
8.2.30.0000.00718.13
8.2.20.0040.00417.59
8.2.10.0080.00018.10
8.2.00.0000.00817.78
8.1.280.0070.01025.92
8.1.270.0040.00423.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0070.00418.98
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0060.00617.23
8.1.190.0060.00317.25
8.1.180.0000.00819.01
8.1.170.0000.00818.45
8.1.160.0020.00521.99
8.1.150.0070.00018.66
8.1.140.0040.00417.42
8.1.130.0080.00017.86
8.1.120.0000.00717.34
8.1.110.0060.00317.45
8.1.100.0040.00417.45
8.1.90.0000.00717.37
8.1.80.0000.00717.42
8.1.70.0070.00017.36
8.1.60.0080.00017.48
8.1.50.0000.00817.58
8.1.40.0030.00517.56
8.1.30.0000.00817.58
8.1.20.0000.00717.66
8.1.10.0040.00417.51
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0040.00417.17
8.0.280.0000.00718.33
8.0.270.0040.00417.17
8.0.260.0030.00317.14
8.0.250.0070.00016.91
8.0.240.0000.00916.94
8.0.230.0070.00017.02
8.0.220.0000.00716.89
8.0.210.0030.00316.86
8.0.200.0030.00316.92
8.0.190.0030.00317.05
8.0.180.0040.00416.89
8.0.170.0040.00416.97
8.0.160.0040.00416.91
8.0.150.0000.00816.78
8.0.140.0050.00216.91
8.0.130.0030.00613.29
8.0.120.0030.00516.95
8.0.110.0000.00716.98
8.0.100.0030.00616.96
8.0.90.0040.00416.95
8.0.80.0060.00916.86
8.0.70.0020.00516.79
8.0.60.0020.00516.92
8.0.50.0040.00416.96
8.0.30.0070.01217.13
8.0.20.0120.00717.40
8.0.10.0050.00217.02
8.0.00.0120.00816.81
7.4.330.0000.00615.07
7.4.320.0060.00016.57
7.4.300.0050.00216.57
7.4.290.0070.00016.65
7.4.280.0040.00416.64
7.4.270.0030.00316.66
7.4.260.0070.00016.54
7.4.250.0000.00716.52
7.4.240.0050.00216.56
7.4.230.0000.00816.62
7.4.220.0140.00316.51
7.4.210.0070.01116.57
7.4.200.0000.00816.36
7.4.190.0080.00016.73
7.4.160.0110.00416.62
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0090.00916.56
7.4.120.0070.01516.63
7.4.110.0080.01116.56
7.4.100.0060.01216.70
7.4.90.0070.01016.67
7.4.80.0090.01219.39
7.4.70.0130.00316.52
7.4.60.0100.01316.70
7.4.50.0000.00816.49
7.4.40.0100.01016.55
7.4.30.0090.00616.39
7.4.00.0070.00715.09
7.3.330.0000.00613.34
7.3.320.0020.00213.17
7.3.310.0000.00716.37
7.3.300.0070.00016.35
7.3.290.0030.01316.32
7.3.280.0110.00716.30
7.3.270.0110.00717.40
7.3.260.0070.01116.45
7.3.250.0130.00716.32
7.3.240.0130.01116.36
7.3.230.0140.00316.39
7.3.210.0080.01116.63
7.3.200.0130.00319.39
7.3.190.0100.00716.42
7.3.180.0030.01316.32
7.3.170.0080.01116.53
7.3.160.0090.00616.34
7.3.120.0000.01614.97
7.3.10.0100.00316.52
7.3.00.0000.01716.61
7.2.330.0100.00716.68
7.2.320.0120.00616.64
7.2.310.0090.00916.31
7.2.300.0070.01016.58
7.2.290.0030.01416.75
7.2.130.0070.00316.88
7.2.120.0040.00916.85
7.2.110.0030.00716.54
7.2.100.0120.00416.78
7.2.90.0060.00917.05
7.2.80.0100.00317.00
7.2.70.0060.00316.73
7.2.60.0060.01016.82
7.2.50.0040.01216.91
7.2.40.0080.00416.90
7.2.30.0000.01416.90
7.2.20.0030.00716.95
7.2.10.0070.00716.63
7.2.00.0050.00718.09
7.1.250.0000.01315.66
7.1.200.0100.00315.46
7.1.70.0080.00016.75
7.1.60.0000.01016.81
7.1.50.0000.01116.59
7.1.00.0070.07322.30
7.0.200.0130.00016.55
7.0.140.0030.07321.96
7.0.60.0070.06019.96
7.0.50.0000.05017.87
7.0.40.0130.07020.15
7.0.30.0330.07720.11
7.0.20.0270.07020.15
7.0.10.0070.04320.06
7.0.00.0070.04720.12
5.6.280.0070.06721.09
5.6.210.0130.07720.62
5.6.200.0030.08718.18
5.6.190.0030.08720.43
5.6.180.0030.08020.61
5.6.170.0300.05320.47
5.6.160.0030.06020.61
5.6.150.0200.02718.11
5.6.140.0070.03718.27
5.6.130.0170.04318.24
5.6.120.0070.04321.14
5.6.110.0100.07020.93
5.6.100.0030.07720.97
5.6.90.0070.08321.12
5.6.80.0100.08020.50
5.5.350.0030.07720.37
5.5.340.0000.04317.97
5.5.330.0100.04020.40
5.5.320.0030.08320.27
5.5.310.0370.07720.27
5.5.300.0100.08318.01
5.5.290.0030.06018.08
5.5.280.0070.07020.67
5.5.270.0000.04320.98
5.5.260.0000.09320.98
5.5.250.0030.09320.80
5.5.240.0030.03020.37
5.4.450.0430.04019.45
5.4.440.0370.04019.41
5.4.430.0700.05319.32
5.4.420.1130.06019.68
5.4.410.0870.05319.52
5.4.400.1070.04719.24
5.4.390.1170.07319.17
5.4.380.0200.06318.75
5.4.370.0200.04718.74
5.4.360.0130.05018.59
5.4.350.0070.06018.55
5.4.340.0070.05718.49
5.4.320.0040.03812.52
5.4.310.0080.03412.51
5.4.300.0040.03812.51
5.4.290.0060.03912.51
5.4.280.0090.03712.41
5.4.270.0040.03912.41
5.4.260.0070.03612.41
5.4.250.0050.03812.41
5.4.240.0050.03812.41
5.4.230.0080.03812.40
5.4.220.0060.03712.41
5.4.210.0030.03812.40
5.4.200.0040.03912.41
5.4.190.0070.03712.40
5.4.180.0050.04412.39
5.4.170.0050.03912.41
5.4.160.0070.03512.40
5.4.150.0060.03512.40
5.4.140.0070.03712.09
5.4.130.0050.03812.07
5.4.120.0080.03412.03
5.4.110.0060.03712.02
5.4.100.0040.03812.03
5.4.90.0010.04212.03
5.4.80.0050.03912.02
5.4.70.0040.03712.02
5.4.60.0090.03112.02
5.4.50.0050.03712.02
5.4.40.0040.03712.02
5.4.30.0090.03312.01
5.4.20.0060.03512.01
5.4.10.0070.03512.01
5.4.00.0050.04411.50
5.3.290.0040.04112.80
5.3.280.0070.03812.71
5.3.270.0080.05012.72
5.3.260.0110.04212.72
5.3.250.0090.05612.72
5.3.240.0060.05612.72
5.3.230.0070.05212.72
5.3.220.0060.04112.69
5.3.210.0050.04512.69
5.3.200.0140.04312.68
5.3.190.0110.05512.68
5.3.180.0090.05312.68
5.3.170.0120.04412.68
5.3.160.0130.06112.68
5.3.150.0070.05512.68
5.3.140.0080.05412.67
5.3.130.0060.05712.67
5.3.120.0080.04812.67
5.3.110.0100.04012.67
5.3.100.0100.03612.15
5.3.90.0030.04112.13
5.3.80.0060.03912.13
5.3.70.0060.04012.12
5.3.60.0060.04012.11
5.3.50.0100.03912.06
5.3.40.0090.03912.06
5.3.30.0070.03812.02
5.3.20.0060.04311.79
5.3.10.0100.05011.76
5.3.00.0100.05211.75
5.2.170.0130.0439.24
5.2.160.0100.0469.24
5.2.150.0060.0669.24
5.2.140.0060.0509.23
5.2.130.0140.0499.20
5.2.120.0120.0349.20
5.2.110.0050.0419.20
5.2.100.0070.0449.20
5.2.90.0080.0389.20
5.2.80.0080.0429.20
5.2.70.0050.0469.20
5.2.60.0090.0429.15
5.2.50.0070.0439.11
5.2.40.0110.0359.09
5.2.30.0140.0569.07
5.2.20.0030.0449.06
5.2.10.0070.0388.96
5.2.00.0060.0298.84
5.1.60.0060.0248.11
5.1.50.0030.0278.11
5.1.40.0040.0268.09
5.1.30.0080.0258.45
5.1.20.0060.0298.46
5.1.10.0050.0308.19
5.1.00.0030.0348.19
5.0.50.0040.0246.68
5.0.40.0050.0236.53
5.0.30.0060.0296.34
5.0.20.0050.0186.31
5.0.10.0040.0206.29
5.0.00.0070.0286.28
4.4.90.0030.0154.78
4.4.80.0010.0174.76
4.4.70.0030.0164.76
4.4.60.0090.0204.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0060.0194.76
4.4.20.0030.0194.84
4.4.10.0030.0174.84
4.4.00.0060.0234.75
4.3.110.0050.0164.67
4.3.100.0040.0174.66
4.3.90.0040.0144.63
4.3.80.0040.0244.59
4.3.70.0020.0164.63
4.3.60.0040.0154.63
4.3.50.0040.0164.63
4.3.40.0070.0464.54
4.3.30.0030.0253.30
4.3.20.0010.0203.28
4.3.10.0050.0193.24
4.3.00.0030.01712.19

preferences:
44.3 ms | 401 KiB | 5 Q