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 Base { public function foo() { echo __METHOD__; } } class First extends Base { use StaticCall; public function foo() { #$this->callStatic('parent', 'foo'); call_user_func_array('parent::foo', array()); } } class Second extends First { use StaticCall; } $s = new Second(); $s->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.0100.00716.88
8.3.50.0070.00716.69
8.3.40.0110.00418.71
8.3.30.0130.00619.22
8.3.20.0040.00420.20
8.3.10.0080.00021.94
8.3.00.0040.00417.77
8.2.180.0110.00418.29
8.2.170.0110.00419.04
8.2.160.0170.00322.96
8.2.150.0030.00624.18
8.2.140.0050.00224.66
8.2.130.0100.00026.16
8.2.120.0080.00021.06
8.2.110.0060.00319.08
8.2.100.0070.00417.75
8.2.90.0000.00919.22
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00919.95
8.2.30.0040.00418.06
8.2.20.0040.00417.68
8.2.10.0050.00318.17
8.2.00.0000.00818.11
8.1.280.0150.00025.92
8.1.270.0100.00320.33
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00021.06
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0050.00318.46
8.1.160.0020.00522.00
8.1.150.0050.00218.80
8.1.140.0000.00717.50
8.1.130.0030.00317.87
8.1.120.0040.00417.37
8.1.110.0040.00417.37
8.1.100.0030.00317.44
8.1.90.0040.00817.45
8.1.80.0070.00017.34
8.1.70.0000.00717.52
8.1.60.0080.00017.59
8.1.50.0040.00417.50
8.1.40.0000.00817.53
8.1.30.0040.00417.57
8.1.20.0090.00017.66
8.1.10.0000.00817.54
8.1.00.0000.00817.51
8.0.300.0050.00318.77
8.0.290.0050.00216.63
8.0.280.0000.00718.36
8.0.270.0040.00417.13
8.0.260.0040.00417.25
8.0.250.0080.00016.98
8.0.240.0030.00316.88
8.0.230.0000.00716.84
8.0.220.0030.00316.88
8.0.210.0070.00016.78
8.0.200.0000.00616.86
8.0.190.0050.00316.96
8.0.180.0040.00416.93
8.0.170.0070.00016.98
8.0.160.0030.00616.83
8.0.150.0030.00516.84
8.0.140.0000.00716.89
8.0.130.0030.00313.29
8.0.120.0090.00016.80
8.0.110.0040.00416.79
8.0.100.0040.00416.75
8.0.90.0030.00316.77
8.0.80.0070.01316.88
8.0.70.0000.00716.86
8.0.60.0040.00416.77
8.0.50.0050.00316.91
8.0.30.0100.00717.14
8.0.20.0110.00817.40
8.0.10.0000.00716.88
8.0.00.0080.01116.81
7.4.330.0000.00515.07
7.4.320.0040.00416.40
7.4.300.0000.00616.51
7.4.290.0060.00016.59
7.4.280.0030.00616.58
7.4.270.0040.00416.50
7.4.260.0080.00016.50
7.4.250.0070.00016.48
7.4.240.0020.00616.63
7.4.230.0060.00016.60
7.4.220.0120.01216.45
7.4.210.0080.00816.67
7.4.200.0030.00316.63
7.4.160.0040.01216.61
7.4.150.0070.01017.40
7.4.140.0140.00817.86
7.4.130.0040.01516.52
7.4.120.0080.01116.61
7.4.110.0120.00616.52
7.4.100.0150.00616.54
7.4.90.0100.00716.57
7.4.80.0100.01019.39
7.4.70.0000.02016.45
7.4.60.0070.01016.66
7.4.50.0040.00016.52
7.4.40.0040.01316.51
7.4.30.0060.01616.40
7.4.00.0080.00814.79
7.3.330.0000.00613.14
7.3.320.0030.00313.33
7.3.310.0040.00316.21
7.3.300.0030.00316.24
7.3.290.0070.00816.29
7.3.280.0110.00716.32
7.3.270.0070.01217.40
7.3.260.0090.01516.21
7.3.240.0100.01016.22
7.3.230.0030.01416.58
7.3.210.0110.00616.29
7.3.200.0100.01519.39
7.3.190.0070.01016.39
7.3.180.0070.00716.36
7.3.170.0060.01516.41
7.3.160.0100.00716.29
7.3.120.0160.00314.97
7.3.110.0080.00814.62
7.3.100.0070.00314.77
7.3.90.0030.00614.98
7.3.80.0030.00914.69
7.3.70.0080.00414.82
7.3.60.0100.00714.77
7.3.50.0100.00714.93
7.3.40.0030.01214.58
7.3.30.0070.00714.82
7.3.20.0000.01416.25
7.3.10.0000.01516.43
7.3.00.0100.00316.72
7.2.330.0100.00716.72
7.2.320.0100.00716.52
7.2.310.0120.00916.75
7.2.300.0110.00516.63
7.2.290.0130.01116.75
7.2.250.0040.01514.75
7.2.240.0040.01414.93
7.2.230.0030.01314.90
7.2.220.0060.00614.79
7.2.210.0080.00314.79
7.2.200.0060.00614.68
7.2.190.0070.01014.93
7.2.180.0030.00914.97
7.2.170.0060.00814.68
7.2.60.0090.00616.93
7.2.00.0030.01319.13
7.1.330.0030.01015.70
7.1.320.0000.01515.61
7.1.310.0000.01215.57
7.1.300.0070.00715.36
7.1.290.0000.01315.43
7.1.280.0000.01215.53
7.1.270.0030.00715.58
7.1.260.0030.00715.45
7.1.200.0000.01015.80
7.1.100.0030.00918.01
7.1.70.0000.00916.80
7.1.60.0070.01019.59
7.1.50.0110.01416.86
7.1.00.0070.07322.45
7.0.200.0090.00516.18
7.0.60.0100.08019.93
7.0.50.0030.09017.88
7.0.40.0000.04720.24
7.0.30.0270.08320.09
7.0.20.0200.04020.10
7.0.10.0100.06320.22
7.0.00.0070.07320.32
5.6.280.0100.09021.00
5.6.210.0070.06320.52
5.6.200.0100.08318.29
5.6.190.0000.04720.52
5.6.180.0330.04720.33
5.6.170.0230.08720.46
5.6.160.0000.04720.55
5.6.150.0130.06718.14
5.6.140.0070.05718.28
5.6.130.0070.04318.14
5.6.120.0030.06021.04
5.6.110.0070.07720.90
5.6.100.0030.08320.98
5.6.90.0070.04020.88
5.6.80.0200.07020.51
5.5.350.0300.07720.34
5.5.340.0030.04018.01
5.5.330.0100.07320.47
5.5.320.0030.07720.51
5.5.310.0300.08020.22
5.5.300.0030.05317.98
5.5.290.0000.09017.96
5.5.280.0070.08720.69
5.5.270.0070.05020.87
5.5.260.0000.06320.65
5.5.250.0100.08020.59
5.5.240.0070.07320.13
5.4.450.0200.05719.48
5.4.440.0230.06019.58
5.4.430.0070.05719.23
5.4.420.0170.05719.63
5.4.410.0170.07019.25
5.4.400.0000.08719.02
5.4.390.0230.05319.30
5.4.380.0030.07319.25
5.4.370.0170.04719.21
5.4.360.0100.06019.16
5.4.350.0200.06719.29
5.4.340.0130.05719.13
5.4.320.0070.05718.95
5.4.310.0070.05719.13
5.4.300.0130.05018.92
5.4.290.0100.05319.24
5.4.280.0230.05019.25
5.4.270.0170.05019.14
5.4.260.0200.04319.29
5.4.250.0070.05719.29
5.4.240.0130.05019.24
5.4.230.0000.06319.18
5.4.220.0130.07018.99
5.4.210.0170.05719.13
5.4.200.0130.04716.95
5.4.190.0100.05319.19
5.4.180.0130.05019.02
5.4.170.0170.04718.98
5.4.160.0130.05019.14
5.4.150.0070.06319.21
5.4.140.0100.05016.70
5.4.130.0070.05316.46
5.4.120.0070.05316.32
5.4.110.0070.05316.53
5.4.100.0130.06016.67
5.4.90.0130.04716.54
5.4.80.0100.04716.29
5.4.70.0000.06316.27
5.4.60.0030.05716.38
5.4.50.0100.05016.45
5.4.40.0100.05016.63
5.4.30.0230.03716.50
5.4.20.0170.05016.29
5.4.10.0070.05316.59
5.4.00.0130.04715.80
5.3.290.0030.06014.45
5.3.280.0030.05714.46
5.3.270.0130.05014.46
5.3.260.0100.05314.46
5.3.250.0170.04314.62
5.3.240.0000.06014.48
5.3.230.0130.05014.43
5.3.220.0100.05314.43
5.3.210.0100.05314.50
5.3.200.0070.05314.41
5.3.190.0030.06014.55
5.3.180.0070.05314.40
5.3.170.0100.05314.57
5.3.160.0070.05314.57
5.3.150.0100.05314.50
5.3.140.0070.05314.48
5.3.130.0030.06714.42
5.3.120.0030.06314.38
5.3.110.0100.05314.55
5.3.100.0100.05013.88
5.3.90.0200.06013.95
5.3.80.0100.05013.87
5.3.70.0130.05013.91
5.3.60.0130.05014.03
5.3.50.0070.05713.82
5.3.40.0030.06013.78
5.3.30.0070.05713.91
5.3.20.0100.05013.54
5.3.10.0030.05713.44
5.3.00.0200.03713.47
5.2.170.0100.04011.09
5.2.160.0070.04011.00
5.2.150.0030.04310.90
5.2.140.0030.04310.98
5.2.130.0000.05011.10
5.2.120.0130.03310.99
5.2.110.0030.04311.16
5.2.100.0030.04310.95
5.2.90.0030.04710.96
5.2.80.0030.04310.93
5.2.70.0130.03311.02
5.2.60.0070.04310.96
5.2.50.0030.04310.86
5.2.40.0030.04310.93
5.2.30.0030.04311.05
5.2.20.0000.04310.91
5.2.10.0100.03710.84
5.2.00.0100.03710.80
5.1.60.0030.0339.83
5.1.50.0030.0479.98
5.1.40.0070.03310.05
5.1.30.0070.03710.24
5.1.20.0130.03010.34
5.1.10.0100.03010.10
5.1.00.0070.0339.91
5.0.50.0200.0138.46
5.0.40.0000.0308.34
5.0.30.0070.0408.21
5.0.20.0030.0338.04
5.0.10.0100.0238.16
5.0.00.0130.0338.09
4.4.90.0100.0135.86
4.4.80.0000.0235.86
4.4.70.0000.0235.88
4.4.60.0000.0235.86
4.4.50.0030.0205.86
4.4.40.0030.0335.90
4.4.30.0000.0235.90
4.4.20.0030.0235.89
4.4.10.0030.0205.92
4.4.00.0030.0375.88
4.3.110.0000.0235.86
4.3.100.0030.0235.86
4.3.90.0000.0235.86
4.3.80.0030.0335.86
4.3.70.0030.0205.86
4.3.60.0000.0235.86
4.3.50.0000.0235.86
4.3.40.0030.0335.86
4.3.30.0000.0235.86
4.3.20.0000.0235.86
4.3.10.0030.0205.86
4.3.00.0130.0136.79

preferences:
57.06 ms | 400 KiB | 5 Q