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('val'); } } 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.70.0090.00616.58
8.3.60.0130.00718.18
8.3.50.0110.00721.99
8.3.40.0040.01118.73
8.3.30.0070.00718.42
8.3.20.0000.00818.48
8.3.10.0080.00019.15
8.3.00.0000.00721.95
8.2.180.0070.01018.01
8.2.170.0140.00322.96
8.2.160.0210.00020.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00519.66
8.2.110.0100.00022.31
8.2.100.0060.00617.78
8.2.90.0030.00619.09
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00819.82
8.2.20.0050.00217.71
8.2.10.0040.00417.50
8.2.00.0060.00317.61
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00722.50
8.1.230.0080.00420.91
8.1.220.0040.00418.77
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00817.40
8.1.180.0000.00818.10
8.1.170.0090.00018.31
8.1.160.0000.00718.86
8.1.150.0020.00518.48
8.1.140.0000.00717.42
8.1.130.0070.00017.81
8.1.120.0040.00417.45
8.1.110.0000.00717.37
8.1.100.0000.00717.45
8.1.90.0000.00717.38
8.1.80.0000.00717.41
8.1.70.0030.00317.36
8.1.60.0000.00717.59
8.1.50.0060.00317.49
8.1.40.0040.00417.44
8.1.30.0040.00417.51
8.1.20.0090.00017.64
8.1.10.0040.00417.52
8.1.00.0040.00417.57
8.0.300.0030.00320.02
8.0.290.0000.00716.63
8.0.280.0030.00318.37
8.0.270.0040.00417.29
8.0.260.0000.00618.43
8.0.250.0040.00416.98
8.0.240.0030.00616.91
8.0.230.0000.00716.90
8.0.220.0030.00316.72
8.0.210.0030.00316.70
8.0.200.0000.00716.88
8.0.190.0000.00716.84
8.0.180.0070.00016.75
8.0.170.0040.00416.88
8.0.160.0030.00516.71
8.0.150.0030.00516.78
8.0.140.0040.00416.68
8.0.130.0060.00013.18
8.0.120.0060.00316.84
8.0.110.0040.00416.68
8.0.100.0040.00416.86
8.0.90.0000.00816.72
8.0.80.0090.00616.77
8.0.70.0030.00316.70
8.0.60.0000.00716.79
8.0.50.0070.00016.66
8.0.30.0110.00817.00
8.0.20.0100.00817.40
8.0.10.0070.00017.05
8.0.00.0100.00916.51
7.4.330.0050.00014.70
7.4.320.0000.00616.44
7.4.300.0030.00316.48
7.4.290.0040.00416.50
7.4.280.0030.00316.39
7.4.270.0070.00016.63
7.4.260.0060.00013.22
7.4.250.0050.00316.46
7.4.240.0070.00016.60
7.4.230.0070.00016.53
7.4.220.0160.01116.44
7.4.210.0110.00516.60
7.4.200.0000.00816.52
7.4.190.0040.00416.30
7.4.160.0060.00916.54
7.4.150.0120.01217.40
7.4.140.0080.00917.86
7.4.130.0140.00516.52
7.4.120.0120.00816.47
7.4.110.0180.00716.51
7.4.100.0100.00716.50
7.4.90.0150.00616.43
7.4.80.0090.00919.37
7.4.70.0100.00716.31
7.4.60.0100.00716.50
7.4.50.0030.00616.41
7.4.40.0090.00622.52
7.4.30.0120.00916.39
7.4.00.0060.01214.97
7.3.330.0020.00213.17
7.3.320.0030.00313.10
7.3.310.0040.00416.29
7.3.300.0060.00016.11
7.3.290.0030.01316.25
7.3.280.0090.00716.25
7.3.270.0070.01017.40
7.3.260.0080.01018.24
7.3.250.0090.00816.21
7.3.240.0060.01016.51
7.3.230.0130.00316.39
7.3.210.0060.01216.38
7.3.200.0000.01919.39
7.3.190.0140.00816.37
7.3.180.0100.00616.24
7.3.170.0150.00616.35
7.3.160.0070.01316.20
7.3.120.0030.01214.79
7.3.110.0090.00914.91
7.3.100.0080.00814.78
7.3.90.0050.00814.59
7.3.80.0060.00714.69
7.3.70.0060.01014.81
7.3.60.0080.00614.65
7.3.50.0050.00914.68
7.3.40.0090.00514.53
7.3.30.0020.01014.72
7.3.20.0020.01016.54
7.3.10.0040.00916.54
7.3.00.0050.00716.53
7.2.330.0110.00716.69
7.2.320.0080.00916.48
7.2.310.0090.01316.72
7.2.300.0070.01016.73
7.2.290.0070.01116.42
7.2.250.0080.01115.13
7.2.240.0060.01414.93
7.2.230.0050.01114.91
7.2.220.0070.00615.11
7.2.210.0090.00514.88
7.2.200.0080.00514.93
7.2.190.0060.00714.91
7.2.180.0050.00814.81
7.2.170.0030.01014.99
7.2.130.0000.01416.63
7.2.120.0030.01316.86
7.2.110.0120.00316.61
7.2.100.0060.00616.97
7.2.90.0040.01216.85
7.2.80.0080.00616.87
7.2.70.0080.00416.92
7.2.60.0060.00616.52
7.2.50.0070.00416.57
7.2.40.0000.01616.73
7.2.30.0040.01116.72
7.2.20.0140.00016.74
7.2.10.0090.00616.93
7.2.00.0050.00818.18
7.1.330.0090.00615.67
7.1.320.0040.00915.81
7.1.310.0040.00815.66
7.1.300.0060.00615.63
7.1.290.0080.00515.65
7.1.280.0090.00415.50
7.1.270.0030.01015.66
7.1.260.0050.00915.63
7.1.250.0030.00715.74
7.1.100.0060.00617.91
7.1.70.0000.00817.12
7.1.60.0170.00719.40
7.1.50.0070.01816.92
7.1.00.0030.03322.48
7.0.200.0000.01016.55
7.0.140.0030.07321.92
7.0.70.0230.06321.66
7.0.60.0000.07021.77
7.0.50.0030.05322.05
7.0.40.0030.04020.13
7.0.30.0000.04320.12
7.0.20.0030.04020.07
7.0.10.0000.04320.15
7.0.00.0070.03019.93
5.6.280.0100.06721.12
5.6.220.0070.08020.72
5.6.210.0030.06720.44
5.6.200.0070.05320.99
5.6.190.0070.03720.88
5.6.180.0070.03721.09
5.6.170.0030.04021.10
5.6.160.0030.03021.01
5.6.150.0000.04020.99
5.6.140.0070.02721.05
5.6.130.0030.03720.91
5.6.120.0000.08021.09
5.6.110.0070.04321.00
5.6.100.0030.09320.98
5.6.90.0030.07721.08
5.6.80.0030.03720.40
5.6.70.0030.04320.51
5.6.60.0070.03320.38
5.6.50.0000.03320.39
5.6.40.0030.03720.36
5.6.30.0070.02720.30
5.6.20.0030.03020.30
5.6.10.0000.03320.45
5.6.00.0000.04020.33
5.5.360.0130.07720.39
5.5.350.0070.08020.37
5.5.340.0030.06320.83
5.5.330.0030.04020.86
5.5.320.0030.04020.86
5.5.310.0070.03720.91
5.5.300.0000.04020.79
5.5.290.0030.04020.76
5.5.280.0070.05020.79
5.5.270.0000.03320.85
5.5.260.0000.07720.91
5.5.250.0000.04020.63
5.5.240.0030.04020.27
5.5.230.0070.04020.28
5.5.220.0000.03320.30
5.5.210.0030.03720.24
5.5.200.0000.03320.08
5.5.190.0000.03720.09
5.5.180.0070.02720.27
5.5.160.0000.03320.10
5.5.150.0030.03020.09
5.5.140.0000.03320.25
5.5.130.0000.03320.10
5.5.120.0000.04020.14
5.5.110.0000.03720.04
5.5.100.0000.03320.09
5.5.90.0000.03320.10
5.5.80.0000.03020.00
5.5.70.0000.04320.03
5.5.60.0000.03320.14
5.5.50.0000.03020.14
5.5.40.0030.03020.08
5.5.30.0070.02720.04
5.5.20.0000.03320.12
5.5.10.0000.03719.95
5.5.00.0000.05020.12
5.4.450.0030.04019.48
5.4.440.0030.06719.21
5.4.430.0000.03319.16
5.4.420.0070.03719.35
5.4.410.0000.08319.28
5.4.400.0000.03718.87
5.4.390.0000.04319.11
5.4.380.0000.03718.93
5.4.370.0030.02719.21
5.4.360.0000.03318.94
5.4.350.0030.03319.21
5.4.340.0000.03319.16
5.4.320.0000.03718.89
5.4.310.0100.02319.22
5.4.300.0030.02718.88
5.4.290.0000.03019.11
5.4.280.0070.03318.83
5.4.270.0000.03019.11
5.4.260.0030.03018.86
5.4.250.0000.03019.14
5.4.240.0030.03019.03
5.4.230.0000.04018.89
5.4.220.0000.03319.01
5.4.210.0000.03019.21
5.4.200.0030.04018.93
5.4.190.0030.03019.14
5.4.180.0130.02718.93
5.4.170.0000.04319.02
5.4.160.0030.05318.81
5.4.150.0030.03719.13
5.4.140.0000.04016.47
5.4.130.0100.02016.51
5.4.120.0000.07316.52
5.4.110.0030.05716.48
5.4.100.0000.07316.33
5.4.90.0000.06016.53
5.4.80.0030.07016.42
5.4.70.0030.07016.31
5.4.60.0070.05716.36
5.4.50.0070.05716.38
5.4.40.0030.07016.41
5.4.30.0070.07016.42
5.4.20.0100.06316.38
5.4.10.0000.04016.54
5.4.00.0030.06015.77
5.3.290.0000.03014.68
5.3.280.0000.03014.66
5.3.270.0000.08014.71
5.3.260.0030.07714.70
5.3.250.0000.04314.58
5.3.240.0000.04014.59
5.3.230.0030.05714.66
5.3.220.0100.06314.54
5.3.210.0030.06714.59
5.3.200.0030.06014.56
5.3.190.0030.07014.54
5.3.180.0030.07314.66
5.3.170.0130.06014.53
5.3.160.0030.06314.59
5.3.150.0000.07314.52
5.3.140.0000.07714.53
5.3.130.0030.06714.57
5.3.120.0070.07314.61
5.3.110.0000.06314.60
5.3.100.0030.07014.07
5.3.90.0070.06314.16
5.3.80.0030.07014.05
5.3.70.0000.05014.03
5.3.60.0030.06314.09
5.3.50.0000.06013.99
5.3.40.0030.06713.87
5.3.30.0030.06713.91
5.3.20.0000.07313.68
5.3.10.0000.07013.64
5.3.00.0030.06713.78
5.2.170.0000.06311.30
5.2.160.0000.05011.30
5.2.150.0030.05711.30
5.2.140.0030.06011.30
5.2.130.0030.06311.30
5.2.120.0000.06711.30
5.2.110.0070.06011.30
5.2.100.0000.06711.30
5.2.90.0000.05711.30
5.2.80.0070.05311.30
5.2.70.0070.05011.30
5.2.60.0030.06011.30
5.2.50.0030.06011.30
5.2.40.0000.06011.30
5.2.30.0070.06011.30
5.2.20.0070.05011.30
5.2.10.0070.05711.30
5.2.00.0000.06711.30
5.1.60.0000.05011.30
5.1.50.0030.05011.30
5.1.40.0000.05311.30
5.1.30.0000.06011.30
5.1.20.0000.05311.30
5.1.10.0000.04711.30
5.1.00.0030.05711.30
5.0.50.0100.04011.30
5.0.40.0030.03311.30
5.0.30.0030.06311.30
5.0.20.0000.03011.30
5.0.10.0000.04711.30
5.0.00.0070.06011.30
4.4.90.0030.03311.30
4.4.80.0030.03311.30
4.4.70.0000.03011.30
4.4.60.0030.03711.30
4.4.50.0000.02711.30
4.4.40.0030.05011.30
4.4.30.0070.03311.30
4.4.20.0000.03711.30
4.4.10.0000.03011.30
4.4.00.0000.05011.30
4.3.110.0030.03311.30
4.3.100.0000.03311.30
4.3.90.0030.03011.30
4.3.80.0000.05011.30
4.3.70.0030.03311.30
4.3.60.0030.03311.30
4.3.50.0000.04011.30
4.3.40.0030.04711.30
4.3.30.0030.03311.30
4.3.20.0030.03711.30
4.3.10.0030.02711.30
4.3.00.0070.03011.30

preferences:
53.96 ms | 401 KiB | 5 Q