3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Ref; interface I { const I = 'I'; } class A implements I { const A = 'A'; public function __construct() {} } class B extends A { const B = 'B'; public static $publicStatic; } $r = new \ReflectionClass('Ref\B'); $r->getProperty('publicStatic')->setAccessible(true); var_dump($r->getStaticPropertyValue('publicStatic', 'def'));

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.0100.00716.38
8.3.50.0090.01017.44
8.3.40.0080.00818.46
8.3.30.0110.00718.55
8.3.20.0050.00318.66
8.3.10.0030.00520.23
8.3.00.0110.00017.50
8.2.180.0080.00816.50
8.2.170.0140.00722.96
8.2.160.0070.00721.05
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00019.36
8.2.110.0030.00820.35
8.2.100.0030.00720.10
8.2.90.0050.00317.75
8.2.80.0050.00317.97
8.2.70.0040.00417.80
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0040.00420.47
8.2.30.0000.00717.97
8.2.20.0040.00417.66
8.2.10.0080.00017.75
8.2.00.0000.00717.60
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.63
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0050.00318.71
8.1.160.0080.00018.77
8.1.150.0000.00818.54
8.1.140.0000.00717.37
8.1.130.0000.00717.91
8.1.120.0040.00417.47
8.1.110.0040.00417.34
8.1.100.0000.00717.46
8.1.90.0000.00717.34
8.1.80.0040.00417.36
8.1.70.0040.00417.43
8.1.60.0050.00317.59
8.1.50.0080.00017.52
8.1.40.0040.00417.57
8.1.30.0020.00517.51
8.1.20.0100.00017.72
8.1.10.0040.00417.43
8.1.00.0020.00517.46
8.0.300.0040.00419.65
8.0.290.0000.00816.63
8.0.280.0030.00318.45
8.0.270.0030.00316.84
8.0.260.0060.00016.74
8.0.250.0070.00016.98
8.0.240.0040.00416.90
8.0.230.0000.00716.96
8.0.220.0040.00416.85
8.0.210.0030.00316.90
8.0.200.0000.00616.82
8.0.190.0040.00416.84
8.0.180.0070.00016.84
8.0.170.0000.00916.88
8.0.160.0050.00316.76
8.0.150.0040.00416.79
8.0.140.0030.00716.88
8.0.130.0030.00313.33
8.0.120.0000.00716.75
8.0.110.0000.00716.74
8.0.100.0040.00416.72
8.0.90.0070.00016.70
8.0.80.0120.00316.95
8.0.70.0050.00216.86
8.0.60.0000.00716.86
8.0.50.0050.00316.94
8.0.30.0120.00716.96
8.0.20.0140.00517.07
8.0.10.0040.00416.90
8.0.00.0120.01216.79
7.4.330.0030.00313.05
7.4.320.0000.00716.41
7.4.300.0030.00316.49
7.4.290.0000.00716.55
7.4.280.0000.00916.50
7.4.270.0030.00316.52
7.4.260.0000.00513.18
7.4.250.0000.00816.64
7.4.240.0030.00316.55
7.4.230.0030.00316.59
7.4.220.0120.00616.45
7.4.210.0070.00816.59
7.4.200.0070.00016.61
7.4.190.0000.00716.46
7.4.160.0090.00616.65
7.4.150.0190.00316.34
7.4.140.0090.00816.58
7.4.130.0090.00716.41
7.4.120.0110.00716.49
7.4.110.0120.00816.64
7.4.100.0090.00916.40
7.4.90.0140.00316.41
7.4.80.0140.00719.39
7.4.70.0180.00916.29
7.4.60.0120.00516.42
7.4.50.0000.00616.43
7.4.40.0040.01216.36
7.4.30.0130.00316.51
7.4.00.0090.00614.82
7.3.330.0030.00313.02
7.3.320.0000.00613.16
7.3.310.0000.00716.19
7.3.300.0030.00316.07
7.3.290.0090.00616.19
7.3.280.0100.00816.22
7.3.270.0100.02116.30
7.3.260.0070.01016.38
7.3.250.0080.01216.26
7.3.240.0160.00316.60
7.3.230.0100.00716.54
7.3.210.0090.00916.47
7.3.200.0160.00416.65
7.3.190.0150.00616.26
7.3.180.0100.00616.43
7.3.170.0090.00616.30
7.3.160.0130.00916.17
7.3.120.0030.01014.73
7.2.330.0080.01116.62
7.2.320.0130.01016.73
7.2.310.0070.01116.76
7.2.300.0040.01216.53
7.2.290.0030.01316.39
7.2.00.0040.01119.30
7.1.100.0000.01318.10
7.1.70.0070.00716.85
7.1.60.0040.02119.40
7.1.50.0100.00716.87
7.1.00.0030.07722.45
7.0.200.0000.00716.63
7.0.140.0170.06322.10
7.0.120.0030.06721.95
7.0.60.0070.08719.87
7.0.50.0000.05717.88
7.0.40.0070.08017.79
7.0.30.0130.06717.75
7.0.20.0000.08717.75
7.0.10.0030.04317.79
7.0.00.0100.07317.74
5.6.280.0000.07720.78
5.6.210.0070.03720.63
5.6.200.0130.07718.15
5.6.190.0030.04318.25
5.6.180.0170.06318.26
5.6.170.0130.07018.11
5.6.160.0030.08718.14
5.6.150.0130.07018.19
5.6.140.0030.08318.18
5.6.130.0130.08018.14
5.6.120.0130.06718.18
5.6.110.0070.04318.19
5.6.100.0100.07718.27
5.6.90.0030.08318.12
5.6.80.0100.03317.61
5.6.70.0000.04017.55
5.6.60.0030.03717.54
5.6.50.0030.03717.55
5.6.40.0030.03717.48
5.6.30.0030.04717.54
5.6.20.0000.05017.63
5.6.10.0030.04017.51
5.6.00.0000.04317.46
5.5.350.0330.06720.49
5.5.340.0100.07017.95
5.5.330.0070.04317.95
5.5.320.0100.06317.97
5.5.310.0070.07717.99
5.5.300.0000.05717.99
5.5.290.0070.04717.97
5.5.280.0100.08317.96
5.5.270.0000.04717.95
5.5.260.0000.05318.08
5.5.250.0030.05017.80
5.5.240.0000.04017.38
5.5.230.0070.03317.46
5.5.220.0070.04017.30
5.5.210.0070.03317.37
5.5.200.0070.03317.31
5.5.190.0070.04717.33
5.5.180.0070.04317.43
5.5.160.0030.03717.37
5.5.150.0070.03317.33
5.5.140.0070.03317.43
5.5.130.0030.03717.34
5.5.120.0070.03317.41
5.5.110.0030.04717.33
5.5.100.0030.04017.24
5.5.90.0070.03317.28
5.5.80.0000.04017.32
5.5.70.0000.04017.23
5.5.60.0030.03317.26
5.5.50.0070.03317.23
5.5.40.0030.04317.22
5.5.30.0000.04017.23
5.5.20.0000.04317.22
5.5.10.0030.04317.21
5.5.00.0130.05017.22
5.4.450.0070.04719.45
5.4.440.0070.04719.34
5.4.430.0130.05019.27
5.4.420.0000.07019.37
5.4.410.0000.04319.20
5.4.400.0030.03718.98
5.4.390.0030.04019.10
5.4.380.0000.04719.13
5.4.370.0070.03719.02
5.4.360.0030.04718.99
5.4.350.0070.04019.05
5.4.340.0030.03719.01
5.4.320.0030.03719.10
5.4.310.0000.04019.04
5.4.300.0070.04019.12
5.4.290.0070.03319.11
5.4.280.0030.04019.26
5.4.270.0030.03719.09
5.4.260.0000.04019.12
5.4.250.0000.04319.01
5.4.240.0000.04019.12
5.4.230.0030.03719.02
5.4.220.0070.03719.08
5.4.210.0070.03319.00
5.4.200.0030.03719.11
5.4.190.0000.04019.11
5.4.180.0000.04319.07
5.4.170.0200.06319.12
5.4.160.0070.07718.93
5.4.150.0100.06019.12
5.4.140.0070.04716.43
5.4.130.0000.04016.43
5.4.120.0070.04716.34
5.4.110.0070.07716.50
5.4.100.0030.06016.60
5.4.90.0130.05016.52
5.4.80.0070.04316.44
5.4.70.0030.06716.27
5.4.60.0100.04316.29
5.4.50.0130.05016.38
5.4.40.0030.05316.40
5.4.30.0070.07316.43
5.4.20.0030.07016.42
5.4.10.0030.03716.27
5.4.00.0100.04015.82
5.3.290.0030.03714.73
5.3.280.0070.03314.62
5.3.270.0170.06014.46
5.3.260.0030.08314.65
5.3.250.0030.04714.70
5.3.240.0100.07314.61
5.3.230.0030.03714.70
5.3.220.0070.07314.62
5.3.210.0000.06714.64
5.3.200.0030.07714.56
5.3.190.0070.04314.66
5.3.180.0070.07314.56
5.3.170.0030.04314.57
5.3.160.0100.07014.52
5.3.150.0230.06314.53
5.3.140.0130.05014.57
5.3.130.0070.07714.57
5.3.120.0030.04714.51
5.3.110.0170.06714.51
5.3.100.0030.04314.25
5.3.90.0030.04714.04
5.3.80.0100.07014.05
5.3.70.0100.03314.11
5.3.60.0100.06714.03
5.3.50.0030.06313.93
5.3.40.0030.03714.04
5.3.30.0030.03713.90
5.3.20.0230.06313.72
5.3.10.0030.07013.86
5.3.00.0100.05713.66
5.2.170.0000.03311.05
5.2.160.0030.03711.00
5.2.150.0230.02311.13
5.2.140.0030.04311.13
5.2.130.0130.05010.93
5.2.120.0000.05010.93
5.2.110.0000.06711.08
5.2.100.0130.05311.05
5.2.90.0100.03710.99
5.2.80.0070.06011.07
5.2.70.0100.02711.07
5.2.60.0000.06011.06
5.2.50.0070.03711.05
5.2.40.0100.05311.00
5.2.30.0070.05310.93
5.2.20.0100.06710.90
5.2.10.0070.04710.89
5.2.00.0000.03710.72
5.1.60.0000.0279.91
5.1.50.0100.0479.95
5.1.40.0070.05310.04
5.1.30.0130.04710.37
5.1.20.0070.03310.38
5.1.10.0070.04310.04
5.1.00.0000.05010.00
5.0.50.0070.0278.62
5.0.40.0030.0478.61
5.0.30.0000.0538.61
5.0.20.0070.0278.61
5.0.10.0030.0208.61
5.0.00.0000.0378.61
4.4.90.0030.0378.61
4.4.80.0000.0308.61
4.4.70.0100.0238.61
4.4.60.0030.0378.61
4.4.50.0070.0278.61
4.4.40.0030.0338.61
4.4.30.0030.0378.61
4.4.20.0000.0378.61
4.4.10.0030.0338.61
4.4.00.0030.0438.61
4.3.110.0070.0278.61
4.3.100.0070.0308.61
4.3.90.0030.0308.61
4.3.80.0000.0538.61
4.3.70.0000.0238.61
4.3.60.0000.0238.61
4.3.50.0030.0208.61
4.3.40.0070.0408.61
4.3.30.0000.0238.61
4.3.20.0030.0338.61
4.3.10.0000.0238.61
4.3.00.0000.0378.61

preferences:
46.58 ms | 401 KiB | 5 Q