3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static function bar() { echo self::class, ' vs ', static::class, PHP_EOL; } static function bar1() { echo self::class, ' vs ', static::class, PHP_EOL; } } class baz extends foo { static function bar() { echo self::class, ' vs ', static::class, PHP_EOL; } } $r = new ReflectionClass('baz'); $m = $r->getMethod('bar1'); // without overriden method - it's ok, our static scope is preserved. Out: foo vs baz $m->invoke(null); $r = new ReflectionClass('baz'); $m = $r->getMethod('bar'); // with overriden method it's impossible to call parent static method. Out: baz vs baz $m->invoke(null); // how to statically call the parent static method bar() with scope == baz??

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.4.120.0090.01124.14
8.4.110.0130.00722.45
8.4.100.0120.01017.88
8.4.90.0120.00922.50
8.4.80.0140.00617.61
8.4.70.0060.00317.75
8.4.60.0060.00219.05
8.4.50.0100.01020.38
8.4.40.0070.01121.11
8.4.30.0090.00017.51
8.4.20.0030.01717.53
8.4.10.0170.00320.38
8.3.250.0140.00518.71
8.3.240.0100.00917.36
8.3.230.0130.00816.42
8.3.220.0050.00317.16
8.3.210.0110.00818.33
8.3.200.0050.00416.48
8.3.190.0120.00720.36
8.3.180.0040.00519.08
8.3.170.0040.01516.35
8.3.160.0130.00317.10
8.3.150.0110.00817.19
8.3.140.0180.00318.80
8.3.130.0040.00418.34
8.3.120.0120.00318.95
8.3.110.0160.00020.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0090.00017.97
8.3.70.0120.00316.75
8.3.60.0240.00016.50
8.3.50.0100.00822.12
8.3.40.0150.00018.86
8.3.30.0140.00718.72
8.3.20.0150.00319.15
8.3.10.0080.00023.65
8.3.00.0120.00622.41
8.2.290.0090.00720.46
8.2.280.0120.00718.37
8.2.270.0030.01416.53
8.2.260.0040.00416.70
8.2.250.0060.00316.71
8.2.240.0060.00318.68
8.2.230.0060.00322.58
8.2.220.0000.00837.54
8.2.210.0080.00826.77
8.2.200.0060.00316.50
8.2.190.0030.01418.16
8.2.180.0120.00316.50
8.2.170.0070.01122.96
8.2.160.0130.00720.97
8.2.150.0000.00925.66
8.2.140.0060.00324.66
8.2.130.0000.00722.30
8.2.120.0090.00926.35
8.2.110.0060.00322.20
8.2.100.0080.00417.72
8.2.90.0050.00317.75
8.2.80.0050.00318.80
8.2.70.0050.00317.63
8.2.60.0060.00317.63
8.2.50.0080.00017.55
8.2.40.0100.00320.36
8.2.30.0050.00219.31
8.2.20.0070.00017.68
8.2.10.0000.00717.88
8.2.00.0030.00717.98
8.1.330.0100.00921.75
8.1.320.0130.00816.11
8.1.310.0060.00316.37
8.1.300.0070.00318.21
8.1.290.0060.00330.84
8.1.280.0120.00925.92
8.1.270.0030.00523.96
8.1.260.0030.00528.09
8.1.250.0050.00528.09
8.1.240.0090.00019.16
8.1.230.0030.00720.83
8.1.220.0080.00018.60
8.1.210.0040.00418.77
8.1.200.0000.00917.41
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0090.00018.30
8.1.160.0070.00022.14
8.1.150.0000.00718.74
8.1.140.0040.00419.50
8.1.130.0000.00717.59
8.1.120.0080.00017.40
8.1.110.0080.00017.40
8.1.100.0000.00817.41
8.1.90.0040.00417.39
8.1.80.0040.00417.43
8.1.70.0030.00317.33
8.1.60.0000.00917.63
8.1.50.0000.00817.55
8.1.40.0050.00317.47
8.1.30.0060.00317.60
8.1.20.0000.00717.59
8.1.10.0080.00017.63
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0020.00516.75
8.0.280.0000.00718.43
8.0.270.0000.00817.21
8.0.260.0040.00417.26
8.0.250.0050.00216.91
8.0.240.0070.00016.86
8.0.230.0040.00416.91
8.0.220.0030.00316.72
8.0.210.0040.00416.81
8.0.200.0000.00816.84
8.0.190.0040.00416.81
8.0.180.0000.00716.89
8.0.170.0050.00316.83
8.0.160.0000.00816.86
8.0.150.0040.00416.83
8.0.140.0040.00416.74
8.0.130.0030.00313.30
8.0.120.0080.00016.82
8.0.110.0030.00816.74
8.0.100.0040.00416.73
8.0.90.0020.00516.83
8.0.80.0030.01216.70
8.0.70.0040.00416.86
8.0.60.0050.00216.83
8.0.50.0050.00316.83
8.0.30.0110.01017.18
8.0.20.0150.00917.41
8.0.10.0040.00416.84
8.0.00.0060.01516.54
7.4.330.0000.00515.08
7.4.320.0060.00016.47
7.4.300.0000.00616.43
7.4.290.0030.00516.49
7.4.280.0070.00016.40
7.4.270.0070.00016.52
7.4.260.0070.00016.56
7.4.250.0070.00016.47
7.4.240.0040.00416.59
7.4.230.0070.00016.41
7.4.220.0100.00716.45
7.4.210.0140.00016.66
7.4.200.0070.00016.34
7.4.160.0080.00716.38
7.4.150.0130.00717.40
7.4.140.0070.01017.86
7.4.130.0090.00716.53
7.4.120.0090.00916.54
7.4.110.0120.00616.39
7.4.100.0040.01716.32
7.4.90.0140.00316.60
7.4.80.0160.00019.39
7.4.70.0060.01016.34
7.4.60.0070.01016.41
7.4.50.0070.00716.31
7.4.40.0090.00816.57
7.4.30.0140.00616.30
7.4.00.0100.00315.04
7.3.330.0030.00313.31
7.3.320.0050.00013.10
7.3.310.0040.00416.25
7.3.300.0070.00016.15
7.3.290.0100.00516.22
7.3.280.0050.01116.23
7.3.270.0080.00917.40
7.3.260.0080.01016.37
7.3.250.0080.01016.24
7.3.240.0110.00616.33
7.3.230.0170.00316.42
7.3.210.0070.01016.22
7.3.200.0180.00316.53
7.3.190.0030.01216.14
7.3.180.0110.01116.49
7.3.170.0160.00616.41
7.3.160.0000.01916.34
7.3.10.0070.00716.57
7.3.00.0070.00516.43
7.2.330.0160.00716.71
7.2.320.0140.00716.70
7.2.310.0130.01016.55
7.2.300.0130.01016.67
7.2.290.0090.00616.73
7.2.130.0040.00716.59
7.2.120.0080.00516.69
7.2.110.0050.01016.77
7.2.100.0060.00616.82
7.2.90.0040.01016.74
7.2.80.0040.00916.93
7.2.70.0080.00316.81
7.2.60.0070.00416.84
7.2.50.0080.00516.84
7.2.40.0050.00916.83
7.2.30.0090.00716.88
7.2.20.0080.00516.71
7.2.10.0050.00816.93
7.2.00.0060.00617.26
7.1.250.0060.00615.49
7.1.240.0040.00415.61
7.1.230.0060.00615.64
7.1.220.0000.01015.50
7.1.210.0070.00715.41
7.1.200.0000.00915.44
7.1.190.0080.00415.80
7.1.180.0090.00315.71
7.1.170.0000.01115.75
7.1.160.0060.00915.69
7.1.150.0100.00715.77
7.1.140.0030.01015.75
7.1.130.0080.00815.67
7.1.120.0070.00715.33
7.1.110.0070.00415.26
7.1.100.0030.00915.27
7.1.90.0070.00715.39
7.1.80.0000.01315.48
7.1.70.0060.00916.20
7.1.60.0050.01017.70
7.1.50.0050.00515.27
7.1.40.0050.00815.64
7.1.30.0070.00315.51
7.1.20.0030.00915.34
7.1.10.0100.00315.37
7.1.00.0070.05019.09
7.0.330.0030.00915.33
7.0.320.0030.00615.15
7.0.310.0030.00615.19
7.0.300.0100.00315.35
7.0.290.0030.00915.43
7.0.280.0100.00615.34
7.0.270.0090.00315.26
7.0.260.0040.00815.36
7.0.250.0040.00715.26
7.0.240.0070.00715.01
7.0.230.0070.00415.30
7.0.220.0000.01115.44
7.0.210.0000.01015.46
7.0.200.0110.00314.83
7.0.190.0060.00315.05
7.0.180.0090.00615.18
7.0.170.0070.00715.34
7.0.160.0100.00015.28
7.0.150.0140.00015.34
7.0.140.0080.00815.39
7.0.130.0110.00015.07
7.0.120.0080.00415.48
7.0.110.0070.00715.22
7.0.100.0200.02117.75
7.0.90.0070.03717.68
7.0.80.0140.03017.73
7.0.70.0080.03317.75
7.0.60.0200.03017.57
7.0.50.0160.03017.95
7.0.40.0170.03916.89
7.0.30.0180.03016.72
7.0.20.1070.03516.92
7.0.10.0190.03016.74
7.0.00.0180.02816.72
5.6.380.0070.00714.39
5.6.370.0060.00614.48
5.6.360.0030.00814.02
5.6.350.0000.01014.21
5.6.340.0030.01014.36
5.6.330.0040.01114.37
5.6.320.0040.00413.81
5.6.310.0030.01013.97
5.6.300.0000.01214.16
5.6.290.0100.00314.05
5.6.280.0070.00714.39
5.6.270.0000.01114.01
5.6.260.0040.00713.97
5.6.250.0100.03017.47
5.6.240.0030.03517.45
5.6.230.0110.02817.27
5.6.220.0100.03317.46
5.6.210.0100.03317.34
5.6.200.0080.03517.64
5.6.190.0130.03217.60
5.6.180.0070.03217.51
5.6.170.0100.02817.58
5.6.160.0070.03217.50
5.6.150.0120.02817.48
5.6.140.0060.03017.67
5.6.130.0050.03517.84
5.6.120.0050.04517.51
5.6.110.0140.03917.58
5.6.100.0150.03717.53
5.6.90.0080.04817.67
5.6.80.0080.03817.22
5.6.70.0070.03617.37
5.6.60.0060.03317.24
5.6.50.0070.03217.09
5.6.40.0120.02717.45
5.6.30.0050.03217.32
5.6.20.0030.03417.24
5.6.10.0030.03317.17
5.6.00.0100.03117.20

preferences:
100.18 ms | 403 KiB | 5 Q