3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyParentClass { private function g() { } protected function f() { $this->g(); } } class MyChildClass extends MyParentClass { protected function f() { $a = array(1); // array_map('parent::f', $a); // A array_map($x ==> parent::f(), $a); // B } public static function test() { (new MyChildClass())->f(); } } MyChildClass::test()

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)
5.4.320.0000.05319.15
5.4.310.0070.07018.84
5.4.300.0800.05319.13
5.4.290.1570.03019.06
5.4.280.1730.04719.16
5.4.270.1830.04319.14
5.4.260.1570.03719.03
5.4.250.1930.04019.07
5.4.240.1800.04019.09
5.4.230.1670.04318.97
5.4.220.1830.03719.07
5.4.210.1930.03719.07
5.4.200.1530.03719.23
5.4.190.1730.04319.25
5.4.180.1730.05318.83
5.4.170.1830.04319.23
5.4.160.1600.03719.22
5.4.150.1600.03719.17
5.4.140.1630.04316.43
5.4.130.1630.04316.54
5.4.120.1500.03316.43
5.4.110.1670.04016.60
5.4.100.1300.03716.45
5.4.90.1430.03716.45
5.4.80.1970.03716.57
5.4.70.1300.03716.57
5.4.60.0930.04016.23
5.4.50.0030.04316.16
5.4.40.0070.04016.55
5.4.30.1200.03316.22
5.4.20.1470.04016.40
5.4.10.1000.03716.22
5.4.00.1530.04015.94
5.3.290.1530.04014.68
5.3.280.1470.03714.71
5.3.270.1630.05314.58
5.3.260.1630.03714.62
5.3.250.1200.04014.69
5.3.240.1330.04014.62
5.3.230.1470.04014.69
5.3.220.1300.03014.54
5.3.210.1070.02714.58
5.3.200.1430.03714.56
5.3.190.1030.04014.80
5.3.180.1270.03314.46
5.3.170.0000.04014.54
5.3.160.0030.03714.54
5.3.150.1030.02714.54
5.3.140.1600.04714.49
5.3.130.1200.03314.57
5.3.120.1630.03314.46
5.3.110.1600.03314.55
5.3.100.1600.03713.95
5.3.90.1870.04714.03
5.3.80.1870.05014.10
5.3.70.1100.04014.12
5.3.60.1770.04313.93
5.3.50.0670.03713.86
5.3.40.0070.05013.86
5.3.30.0070.04313.86
5.3.20.0830.04713.81
5.3.10.1870.03313.59
5.3.00.1700.04013.66
5.2.170.1130.04011.38
5.2.160.0030.06311.16
5.2.150.0000.04311.16
5.2.140.0000.04011.20
5.2.130.0030.03011.09
5.2.120.1170.03011.02
5.2.110.1330.02711.01
5.2.100.1330.02711.32
5.2.90.1400.02711.04
5.2.80.1370.03011.18
5.2.70.1500.03711.11
5.2.60.1270.03311.14
5.2.50.1370.02311.07
5.2.40.0030.05011.22
5.2.30.0030.03311.21
5.2.20.0170.05710.89
5.2.10.0200.05010.92
5.2.00.1100.02710.63
5.1.60.1170.0279.97
5.1.50.1300.03010.18
5.1.40.1030.0279.91
5.1.30.1000.03010.24
5.1.20.1230.02710.28
5.1.10.1200.03310.15
5.1.00.0930.02310.15
5.0.50.0500.0238.56
5.0.40.0630.0308.47
5.0.30.0670.0338.10
5.0.20.0600.0238.14
5.0.10.0630.0278.11
5.0.00.0170.0378.39
4.4.90.0470.0277.45
4.4.80.0570.0137.45
4.4.70.0670.0237.45
4.4.60.0030.0377.45
4.4.50.0100.0177.45
4.4.40.0000.0307.45
4.4.30.0000.0337.45
4.4.20.0000.0277.45
4.4.10.0000.0207.45
4.4.00.0000.0277.45
4.3.110.0170.0177.45
4.3.100.0500.0177.45
4.3.90.0600.0207.45
4.3.80.0530.0237.45
4.3.70.0530.0137.45
4.3.60.0500.0177.45
4.3.50.0630.0207.45
4.3.40.0530.0277.45
4.3.30.0270.0137.45
4.3.20.0270.0177.45
4.3.10.0300.0237.45
4.3.00.0300.0107.45

preferences:
142.97 ms | 1386 KiB | 7 Q