3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait StaticCall { protected function callStatic($className, $methodName) { $parameters = func_get_args(); $parameters = array_slice($parameters, 2); return call_user_func_array($className . '::' . $methodName, $parameters); } } class ParentClass { public function foo() { echo __METHOD__; } } class ChildClass extends ParentClass { use StaticCall; public function foo() { $this->callStatic('parent', 'foo'); } } class GrandChildClass extends ChildClass { use StaticCall; } $c = new GrandChildClass(); $c->foo();

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.0090.00616.75
8.3.50.0070.01421.29
8.3.40.0090.00618.92
8.3.30.0140.00019.26
8.3.20.0040.00420.41
8.3.10.0040.00422.08
8.3.00.0040.00419.79
8.2.180.0070.00718.13
8.2.170.0040.01219.10
8.2.160.0060.00922.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.97
8.2.110.0070.00322.27
8.2.100.0150.00617.78
8.2.90.0030.00718.00
8.2.80.0030.00517.97
8.2.70.0080.00017.93
8.2.60.0050.00318.16
8.2.50.0030.00618.10
8.2.40.0050.00520.29
8.2.30.0040.00418.15
8.2.20.0050.00317.80
8.2.10.0000.00818.14
8.2.00.0000.00818.18
8.1.280.0750.04674.59
8.1.270.0200.02746.38
8.1.260.0100.01748.35
8.1.250.0170.03048.06
8.1.240.0070.02649.53
8.1.230.0220.03543.76
8.1.220.0260.01643.76
8.1.210.0070.03643.36
8.1.200.0100.03043.36
8.1.190.0160.02943.35
8.1.180.0070.03643.35
8.1.170.0170.02744.45
8.1.160.0210.02444.84
8.1.150.0100.03044.89
8.1.140.0200.02043.51
8.1.130.0090.02843.77
8.1.120.0130.02743.55
8.1.110.0120.02843.50
8.1.100.0180.02143.37
8.1.90.0100.04543.45
8.1.80.0080.03143.52
8.1.70.0070.03243.36
8.1.60.0210.02143.52
8.1.50.0130.03043.54
8.1.40.0170.03843.49
8.1.30.0170.02743.67
8.1.20.0060.03243.50
8.1.10.0200.05773.14
8.1.00.0100.06873.16
8.0.300.0260.04975.97
8.0.290.0390.03372.63
8.0.280.0230.04674.08
8.0.270.0100.06472.85
8.0.260.0240.05072.77
8.0.250.0200.05972.40
8.0.240.0130.06072.49
8.0.230.0130.06272.43
8.0.220.0370.04072.47
8.0.210.0300.04672.38
8.0.200.0230.05072.38
8.0.190.0240.04872.42
8.0.180.0200.05472.46
8.0.170.0270.04772.52
8.0.160.0160.05972.34
8.0.150.0170.06072.54
8.0.140.0140.06172.44
8.0.130.0600.113121.73
8.0.120.0270.04472.32
8.0.110.0160.05972.39
8.0.100.0100.06772.30
8.0.90.0360.03972.45
8.0.80.0460.09372.47
8.0.70.0300.04672.46
8.0.60.0190.05272.29
8.0.50.0170.05672.46
8.0.30.0330.09072.66
8.0.20.0510.10972.62
8.0.10.0340.03772.58
8.0.00.0710.12372.33
7.4.330.0420.04670.48
7.4.320.0170.05772.02
7.4.300.0230.05072.08
7.4.290.0310.04572.06
7.4.280.0330.06772.09
7.4.270.0170.05871.94
7.4.260.0270.05072.10
7.4.250.0170.06172.06
7.4.240.0250.05171.95
7.4.230.0230.05371.89
7.4.220.0610.11571.91
7.4.210.0680.07872.06
7.4.200.0130.05772.13
7.4.160.0500.08972.02
7.4.150.0970.11172.09
7.4.140.0570.11772.09
7.4.130.0580.10472.00
7.4.120.0470.10672.05
7.4.110.0430.11272.05
7.4.100.0630.16172.18
7.4.90.0550.10472.14
7.4.80.0490.10572.10
7.4.70.0760.15471.96
7.4.60.0820.14471.98
7.4.50.0140.06171.95
7.4.40.0360.11171.98
7.4.30.0750.09372.04
7.4.00.0230.08570.31
7.3.330.0340.098121.62
7.3.320.0460.086121.86
7.3.310.0230.05071.73
7.3.300.0030.06971.71
7.3.290.0460.08871.81
7.3.280.0520.10271.84
7.3.270.0700.08371.84
7.3.260.0860.12271.84
7.3.250.0580.09671.84
7.3.240.0410.11571.79
7.3.230.0460.11071.96
7.3.210.0590.09871.86
7.3.200.0890.15572.13
7.3.190.0740.09771.81
7.3.180.0560.10271.89
7.3.170.0710.18171.91
7.3.160.0720.07971.91
7.2.330.0790.11980.03
7.2.320.0590.11280.05
7.2.310.0880.12780.21
7.2.300.0560.12680.20
7.2.290.0920.13480.14
7.2.60.2210.04778.61
7.1.200.4140.06277.86
7.1.70.2130.05179.06
7.1.60.0170.05879.14
7.1.50.1240.08179.02
7.1.00.0100.15784.43
7.0.200.1190.05478.53
7.0.100.2600.09083.63
7.0.90.0400.09783.49
7.0.80.0330.09783.47
7.0.70.0900.08783.47
7.0.60.0470.08783.56
7.0.50.0200.09383.90
7.0.40.0100.10720.13
7.0.30.0100.14319.99
7.0.20.0070.11319.95
7.0.10.0130.14020.09
7.0.00.0100.16020.12
5.6.280.0230.07742.82
5.6.250.0170.04342.42
5.6.240.0070.05342.50
5.6.230.0070.05342.42
5.6.220.0070.05342.50
5.6.210.0100.05042.37
5.6.200.0170.04742.88
5.6.190.0070.10742.86
5.6.180.0200.08742.75
5.6.170.0170.09742.96
5.6.160.0130.07742.77
5.6.150.0070.10742.99
5.6.140.0030.06042.86
5.6.130.0130.09042.78
5.6.120.0170.08742.76
5.6.110.0100.06742.76
5.6.100.0130.09742.98
5.6.90.0130.06742.76
5.6.80.0170.08342.27
5.6.70.0170.09042.33
5.6.60.0170.04342.23
5.6.50.0100.08342.32
5.6.40.0130.09042.22
5.6.30.0170.07342.35
5.6.20.0130.11342.34
5.6.10.0130.09342.11
5.6.00.0230.08342.21
5.5.380.0030.08342.61
5.5.370.0070.05342.60
5.5.360.0070.05342.68
5.5.350.0270.03342.62
5.5.340.0230.09042.97
5.5.330.0000.06043.15
5.5.320.0300.08043.14
5.5.310.0170.08743.05
5.5.300.0130.08343.16
5.5.290.0130.10343.13
5.5.280.0130.09743.02
5.5.270.0170.09343.11
5.5.260.0200.05343.13
5.5.250.0130.08342.97
5.5.240.0130.05742.27
5.5.230.0230.07042.51
5.5.220.0230.08742.52
5.5.210.0230.08742.43
5.5.200.0200.08342.43
5.5.190.0170.08742.23
5.5.180.0070.05742.24
5.5.160.0200.05042.43
5.5.150.0100.05742.38
5.5.140.0170.05742.51
5.5.130.0230.08742.39
5.5.120.0200.10042.46
5.5.110.0270.08042.35
5.5.100.0100.09742.29
5.5.90.0130.09742.31
5.5.80.0130.09342.31
5.5.70.0130.09742.39
5.5.60.0170.09042.34
5.5.50.0200.08342.31
5.5.40.0070.09742.40
5.5.30.0130.09342.30
5.5.20.0100.10042.40
5.5.10.0300.07742.26
5.5.00.0170.08342.26
5.4.450.0200.07742.47
5.4.440.0170.09042.58
5.4.430.0070.10042.42
5.4.420.0200.09342.70
5.4.410.0100.10042.41
5.4.400.0170.07742.23
5.4.390.0130.09042.18
5.4.380.0200.09342.19
5.4.370.0100.09042.19
5.4.360.0100.09742.02
5.4.350.0170.09342.34
5.4.340.0200.08742.19
5.4.320.0330.07742.26
5.4.310.0200.07742.18
5.4.300.0170.10342.27
5.4.290.0130.09042.06
5.4.280.0170.10042.04
5.4.270.0100.09042.20
5.4.260.0100.07742.25
5.4.250.0170.06042.16
5.4.240.0300.08042.14
5.4.230.0170.09042.03
5.4.220.0270.08742.26
5.4.210.0130.10042.15
5.4.200.0170.09042.32
5.4.190.0130.09042.25
5.4.180.0200.09342.09
5.4.170.0300.07042.10
5.4.160.0130.08742.24
5.4.150.0200.05342.00
5.4.140.0200.08339.26
5.4.130.0170.09338.92
5.4.120.0270.07038.84
5.4.110.0200.08039.63
5.4.100.0130.08739.49
5.4.90.0230.07739.63
5.4.80.0100.05739.66
5.4.70.0170.05039.69
5.4.60.0170.05039.54
5.4.50.0370.08039.67
5.4.40.0070.06339.45
5.4.30.0070.08739.67
5.4.20.0200.07039.53
5.4.10.0130.09739.65
5.4.00.0230.07038.29
5.3.290.0100.08314.49
5.3.280.0030.08314.46
5.3.270.0100.06714.46
5.3.260.0070.07714.47
5.3.250.0130.07014.46
5.3.240.0100.07014.57
5.3.230.0070.07014.56
5.3.220.0030.07314.53
5.3.210.0070.07314.48
5.3.200.0070.07714.53
5.3.190.0170.06314.55
5.3.180.0100.07314.57
5.3.170.0100.06714.56
5.3.160.0030.08314.42
5.3.150.0100.07314.58
5.3.140.0030.07314.54
5.3.130.0100.07714.41
5.3.120.0000.08014.50
5.3.110.0070.03314.41
5.3.100.0030.03314.00
5.3.90.0000.08013.97
5.3.80.0070.06713.87
5.3.70.0000.08013.98
5.3.60.0100.06313.90
5.3.50.0100.08013.92
5.3.40.0100.06713.92
5.3.30.0070.06713.86
5.3.20.0100.07013.64
5.3.10.0100.03713.59
5.3.00.0070.05313.50
5.2.170.0030.06011.82
5.2.160.0030.06311.82
5.2.150.0070.05711.82
5.2.140.0030.06711.82
5.2.130.0070.05711.82
5.2.120.0070.04011.82
5.2.110.0070.05711.82
5.2.100.0000.04711.82
5.2.90.0030.06311.82
5.2.80.0070.05711.82
5.2.70.0030.05711.82
5.2.60.0030.05711.82
5.2.50.0000.06011.82
5.2.40.0100.06011.82
5.2.30.0030.04311.82
5.2.20.0100.05311.82
5.2.10.0030.03711.82
5.2.00.0030.05011.82
5.1.60.0030.04711.82
5.1.50.0100.04711.82
5.1.40.0070.05011.82
5.1.30.0070.05011.82
5.1.20.0070.04711.82
5.1.10.0070.04711.82
5.1.00.0100.05011.82
5.0.50.0070.02311.82
5.0.40.0030.04311.82
5.0.30.0070.04311.82
5.0.20.0070.04311.82
5.0.10.0070.04011.82
5.0.00.0000.06711.82
4.4.90.0000.03311.82
4.4.80.0000.04011.82
4.4.70.0000.01711.82
4.4.60.0100.02711.82
4.4.50.0070.03011.82
4.4.40.0030.05311.82
4.4.30.0030.04011.82
4.4.20.0030.02011.82
4.4.10.0070.03011.82
4.4.00.0070.05311.82
4.3.110.0030.03311.82
4.3.100.0030.03311.82
4.3.90.0030.03311.82
4.3.80.0100.04711.82
4.3.70.0000.03711.82
4.3.60.0000.02011.82
4.3.50.0030.03311.82
4.3.40.0030.04711.82
4.3.30.0000.02011.82
4.3.20.0100.01711.82
4.3.10.0000.03711.82
4.3.00.0030.03011.82

preferences:
70.57 ms | 401 KiB | 5 Q