3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $val = 'Foo'; public static function huh() { $class = new ReflectionClass(get_called_class()); echo $class->getStaticPropertyValue('foo'); } } class Bar extends Foo { public static $val = 'bar'; } Foo::huh(); Bar::huh();

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.50
8.3.50.0110.00717.27
8.3.40.0040.01118.71
8.3.30.0090.00618.71
8.3.20.0040.00418.60
8.3.10.0030.00718.60
8.3.00.0030.01419.09
8.2.180.0090.00618.29
8.2.170.0070.01022.96
8.2.160.0080.00818.92
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00419.83
8.2.110.0120.00620.47
8.2.100.0040.00817.91
8.2.90.0060.00320.59
8.2.80.0060.00317.97
8.2.70.0000.00817.65
8.2.60.0050.00318.03
8.2.50.0080.00418.10
8.2.40.0000.00819.36
8.2.30.0000.01017.63
8.2.20.0060.00317.73
8.2.10.0000.00817.65
8.2.00.0000.00717.65
8.1.280.0090.01325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0060.00323.72
8.1.230.0040.00820.91
8.1.220.0040.00417.74
8.1.210.0040.00419.07
8.1.200.0060.00317.35
8.1.190.0030.00517.22
8.1.180.0030.00518.10
8.1.170.0040.00418.49
8.1.160.0030.00518.57
8.1.150.0040.00418.48
8.1.140.0090.00017.30
8.1.130.0050.00219.17
8.1.120.0030.00517.36
8.1.110.0030.00617.32
8.1.100.0040.00417.27
8.1.90.0000.00717.38
8.1.80.0000.00817.45
8.1.70.0000.00717.27
8.1.60.0080.00017.58
8.1.50.0000.00817.36
8.1.40.0080.00017.44
8.1.30.0100.00017.53
8.1.20.0050.00617.54
8.1.10.0030.00617.45
8.1.00.0050.00317.44
8.0.300.0000.00819.79
8.0.290.0050.00216.75
8.0.280.0020.00518.29
8.0.270.0040.00417.19
8.0.260.0000.00616.68
8.0.250.0040.00416.92
8.0.240.0100.00016.91
8.0.230.0040.00416.83
8.0.220.0030.00616.76
8.0.210.0000.00716.87
8.0.200.0030.00316.83
8.0.190.0040.00416.83
8.0.180.0070.00316.80
8.0.170.0040.00416.85
8.0.160.0040.00416.78
8.0.150.0030.00616.82
8.0.140.0060.00316.82
8.0.130.0030.00313.40
8.0.120.0090.00016.80
8.0.110.0000.00716.95
8.0.100.0040.00416.73
8.0.90.0000.00716.87
8.0.80.0070.00716.94
8.0.70.0050.00216.91
8.0.60.0030.00516.75
8.0.50.0060.00316.78
8.0.30.0150.00616.90
8.0.20.0140.00516.90
8.0.10.0000.00716.96
8.0.00.0090.01016.80
7.4.330.0000.00512.90
7.4.320.0060.00016.55
7.4.300.0030.00316.58
7.4.290.0000.00716.49
7.4.280.0090.00016.43
7.4.270.0060.00016.47
7.4.260.0050.00013.32
7.4.250.0050.00316.54
7.4.240.0030.00316.47
7.4.230.0030.00316.61
7.4.220.0070.01016.57
7.4.210.0070.00716.46
7.4.200.0000.00716.51
7.4.190.0040.00316.48
7.4.160.0110.00416.53
7.4.150.0230.01316.49
7.4.140.0070.01117.86
7.4.130.0080.01216.57
7.4.120.0120.01216.59
7.4.110.0100.00716.52
7.4.100.0070.01016.52
7.4.90.0110.01116.35
7.4.80.0080.00919.39
7.4.70.0080.00816.36
7.4.60.0070.01016.41
7.4.50.0030.00316.30
7.4.40.0070.01116.35
7.4.30.0080.00816.44
7.4.00.0100.00715.05
7.3.330.0000.00613.36
7.3.320.0060.00013.22
7.3.310.0000.00716.31
7.3.300.0070.00016.37
7.3.290.0080.00816.35
7.3.280.0120.00916.30
7.3.270.0090.00916.29
7.3.260.0130.00616.46
7.3.240.0070.01016.34
7.3.230.0080.01016.36
7.3.210.0030.01416.17
7.3.200.0140.00316.40
7.3.190.0060.01016.36
7.3.180.0100.00716.31
7.3.170.0110.00516.48
7.3.160.0090.00716.43
7.3.120.0060.01214.75
7.3.10.0040.00816.51
7.3.00.0090.00916.50
7.2.330.0100.01016.46
7.2.320.0030.01416.68
7.2.310.0160.00716.52
7.2.300.0050.01116.38
7.2.290.0060.01216.39
7.2.130.0050.00516.72
7.2.120.0040.01116.53
7.2.110.0160.00516.93
7.2.100.0070.00716.74
7.2.90.0070.00716.57
7.2.80.0150.00616.77
7.2.70.0000.01416.77
7.2.60.0140.00616.77
7.2.50.0130.00416.81
7.2.40.0090.00916.32
7.2.30.0100.00716.53
7.2.20.0050.00916.39
7.2.10.0080.00616.73
7.2.00.0050.01217.92
7.1.250.0110.00415.48
7.1.200.0040.01115.46
7.1.70.0030.00617.26
7.1.60.0030.00717.16
7.1.50.0070.01316.66
7.1.00.0000.05022.35
7.0.200.0030.01016.81
7.0.140.0030.07322.07
7.0.120.0030.07022.08
7.0.60.0030.07019.98
7.0.50.0100.03717.88
7.0.40.0100.06320.30
7.0.30.0200.07720.16
7.0.20.0270.07320.18
7.0.10.0430.05320.05
7.0.00.0030.07720.22
5.6.280.0070.07020.84
5.6.210.0100.07720.50
5.6.200.0100.08018.19
5.6.190.0030.07720.50
5.6.180.0330.07320.45
5.6.170.0530.06320.46
5.6.160.0000.04320.54
5.6.150.0000.04318.20
5.6.140.0100.08318.21
5.6.130.0030.04018.18
5.6.120.0100.04021.12
5.6.110.0000.09021.01
5.6.100.0100.07721.03
5.6.90.0130.05721.02
5.6.80.0100.07720.39
5.6.70.0270.03720.48
5.5.350.0100.06020.34
5.5.340.0030.04317.94
5.5.330.0200.07320.31
5.5.320.0070.04320.38
5.5.310.0270.07720.34
5.5.300.0130.07317.98
5.5.290.0100.06717.95
5.5.280.0130.07720.83
5.5.270.0170.05020.79
5.5.260.0100.07020.98
5.5.250.0200.06720.61
5.5.240.0130.04020.29
5.4.450.0070.04319.47
5.4.440.0000.05319.16
5.4.430.0070.06019.24
5.4.420.0030.08019.47
5.4.410.0030.04719.17
5.4.400.0070.06319.16
5.4.390.0100.03319.14
5.4.380.0000.07018.85
5.4.370.0070.07719.12
5.4.360.0100.05719.14
5.4.350.0000.07319.00
5.4.340.0000.05019.24
5.4.320.0070.07719.14
5.4.310.0070.07318.88
5.4.300.0070.04319.16
5.4.290.0030.04319.12
5.4.280.0030.05318.97
5.4.270.0070.04019.14
5.4.260.0130.05019.15
5.4.250.0100.03318.85
5.4.240.0100.07718.88
5.4.230.0200.05718.96
5.4.220.0030.08018.84
5.4.210.0030.05719.11
5.4.200.0030.05018.84
5.4.190.0200.05718.99
5.4.180.0130.06718.99
5.4.170.0130.05719.11
5.4.160.0030.07319.22
5.4.150.0100.03718.85
5.4.140.0070.06316.52
5.4.130.0030.08016.42
5.4.120.0070.07016.38
5.4.110.0030.06716.48
5.4.100.0070.07316.48
5.4.90.0030.05316.48
5.4.80.0130.06716.49
5.4.70.0130.06016.50
5.4.60.0070.07316.43
5.4.50.0070.06716.40
5.4.40.0130.04716.46
5.4.30.0070.07016.42
5.4.20.0100.03316.40
5.4.10.0070.03316.46
5.4.00.0000.03715.78
5.3.290.0030.07714.59
5.3.280.0100.06714.59
5.3.270.0200.06314.62
5.3.260.0030.05714.66
5.3.250.0000.04714.53
5.3.240.0100.06714.61
5.3.230.0030.08314.75
5.3.220.0030.08014.73
5.3.210.0070.05314.57
5.3.200.0000.07714.64
5.3.190.0070.05314.49
5.3.180.0030.08014.56
5.3.170.0100.07014.60
5.3.160.0100.06714.56
5.3.150.0130.04314.58
5.3.140.0070.05714.45
5.3.130.0070.08014.70
5.3.120.0030.03714.58
5.3.110.0070.03714.57
5.3.100.0030.03713.96
5.3.90.0000.03714.08
5.3.80.0100.03014.02
5.3.70.0030.03313.91
5.3.60.0070.03714.05
5.3.50.0000.04013.90
5.3.40.0000.04014.00
5.3.30.0070.03013.98
5.3.20.0070.03713.70
5.3.10.0030.03313.58
5.3.00.0030.03313.53
5.2.170.0000.03011.31
5.2.160.0070.02711.07
5.2.150.0070.02311.04
5.2.140.0030.03011.12
5.2.130.0030.02711.18
5.2.120.0070.02311.10
5.2.110.0030.02711.10
5.2.100.0030.03011.26
5.2.90.0000.03011.02
5.2.80.0070.02711.13
5.2.70.0000.03011.13
5.2.60.0030.02711.07
5.2.50.0070.02310.96
5.2.40.0070.02311.04
5.2.30.0070.03011.13
5.2.20.0030.02711.02
5.2.10.0030.02710.82
5.2.00.0070.02310.60
5.1.60.0030.02310.04
5.1.50.0000.0279.97
5.1.40.0000.0239.95
5.1.30.0030.02310.34
5.1.20.0000.02710.36
5.1.10.0000.02710.04
5.1.00.0070.02010.04
5.0.50.0070.0178.72
5.0.40.0000.0208.72
5.0.30.0000.0308.72
5.0.20.0030.0178.72
5.0.10.0000.0208.72
5.0.00.0030.0338.72
4.4.90.0000.0138.72
4.4.80.0000.0178.72
4.4.70.0030.0138.72
4.4.60.0030.0138.72
4.4.50.0000.0138.72
4.4.40.0000.0238.72
4.4.30.0000.0178.72
4.4.20.0030.0138.72
4.4.10.0030.0178.72
4.4.00.0000.0238.72
4.3.110.0000.0138.72
4.3.100.0000.0138.72
4.3.90.0030.0138.72
4.3.80.0030.0238.72
4.3.70.0030.0138.72
4.3.60.0000.0238.72
4.3.50.0030.0378.72
4.3.40.0000.0538.72
4.3.30.0030.0138.72
4.3.20.0070.0278.72
4.3.10.0030.0208.72
4.3.00.0030.0138.72

preferences:
52.8 ms | 400 KiB | 5 Q