3v4l.org

run code in 300+ PHP versions simultaneously
<?hh 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)
8.3.60.0140.01018.43
8.3.50.0100.01222.06
8.3.40.0140.00018.71
8.3.30.0030.01018.97
8.3.20.0030.00520.22
8.3.10.0080.00020.16
8.3.00.0040.00419.43
8.2.180.0130.01016.32
8.2.170.0170.00022.96
8.2.160.0140.00020.40
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00722.24
8.2.110.0030.00621.06
8.2.100.0060.00617.59
8.2.90.0000.00919.05
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0050.00217.91
8.2.50.0040.00418.10
8.2.40.0030.00618.03
8.2.30.0000.00719.15
8.2.20.0000.00717.54
8.2.10.0050.00317.95
8.2.00.0070.00017.48
8.1.280.0150.00025.92
8.1.270.0090.00022.18
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0050.00322.26
8.1.230.0060.00619.11
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.10
8.1.190.0040.00417.11
8.1.180.0030.00518.10
8.1.170.0030.00618.50
8.1.160.0000.00721.97
8.1.150.0030.00518.76
8.1.140.0000.00717.18
8.1.130.0040.00417.75
8.1.120.0000.00717.36
8.1.110.0000.00817.22
8.1.100.0040.00417.20
8.1.90.0040.00417.36
8.1.80.0030.00317.24
8.1.70.0000.00717.29
8.1.60.0030.00517.34
8.1.50.0030.00617.34
8.1.40.0070.00017.40
8.1.30.0040.00417.51
8.1.20.0000.00817.50
8.1.10.0000.00717.28
8.1.00.0000.00717.32
8.0.300.0080.00018.77
8.0.290.0000.00816.63
8.0.280.0040.00418.35
8.0.270.0030.00317.23
8.0.260.0060.00017.23
8.0.250.0030.00316.84
8.0.240.0000.00716.71
8.0.230.0040.00416.77
8.0.220.0070.00016.77
8.0.210.0030.00316.77
8.0.200.0070.00016.85
8.0.190.0040.00416.86
8.0.180.0040.00416.79
8.0.170.0000.00916.79
8.0.160.0040.00316.81
8.0.150.0000.00716.56
8.0.140.0070.00016.66
8.0.130.0050.00013.41
8.0.120.0000.00816.73
8.0.110.0000.00716.66
8.0.100.0000.00816.81
8.0.90.0000.00716.80
8.0.80.0080.00716.68
8.0.70.0040.00416.57
8.0.60.0030.00416.82
8.0.50.0000.00816.69
8.0.30.0110.00916.99
8.0.20.0100.01217.40
8.0.10.0070.00016.97
8.0.00.0050.01316.71
7.4.330.0000.00615.07
7.4.320.0040.00416.36
7.4.300.0030.00316.51
7.4.290.0000.00716.38
7.4.280.0030.00616.45
7.4.270.0070.00016.35
7.4.260.0040.00416.43
7.4.250.0040.00416.32
7.4.240.0020.00516.32
7.4.230.0040.00316.36
7.4.220.0060.01116.50
7.4.210.0040.01116.33
7.4.200.0070.00016.42
7.4.160.0160.00016.27
7.4.150.0120.01217.40
7.4.140.0100.01017.86
7.4.130.0110.00616.44
7.4.120.0070.00916.37
7.4.110.0040.01416.34
7.4.100.0130.00316.30
7.4.90.0100.00716.51
7.4.80.0170.00616.25
7.4.70.0060.01216.25
7.4.60.0100.00716.57
7.4.50.0050.00316.29
7.4.40.0060.01216.46
7.4.30.0030.01316.20
7.3.330.0020.00213.01
7.3.320.0050.00313.10
7.3.310.0070.00016.00
7.3.300.0000.00716.06
7.3.290.0070.00716.07
7.3.280.0080.00916.15
7.3.270.0090.00817.40
7.3.260.0080.00816.06
7.3.250.0130.01016.32
7.3.240.0050.01316.46
7.3.230.0100.00616.39
7.3.210.0160.00616.14
7.3.200.0120.00919.39
7.3.190.0070.01016.24
7.3.180.0130.02316.39
7.3.170.0100.00616.34
7.3.160.0050.01116.19
7.2.330.0030.01416.42
7.2.320.0030.01416.21
7.2.310.0140.00316.25
7.2.300.0040.01416.09
7.2.290.0120.01016.29
5.4.320.0070.03612.45
5.4.310.0070.03812.45
5.4.300.0070.03612.45
5.4.290.0070.03812.45
5.4.280.0050.03612.34
5.4.270.0090.03612.34
5.4.260.0080.03912.35
5.4.250.0100.03412.34
5.4.240.0060.03512.34
5.4.230.0080.03512.34
5.4.220.0040.03612.34
5.4.210.0090.03312.34
5.4.200.0060.03712.34
5.4.190.0060.03512.33
5.4.180.0020.03912.34
5.4.170.0060.03512.35
5.4.160.0070.03412.34
5.4.150.0050.03612.34
5.4.140.0050.03712.02
5.4.130.0050.03612.01
5.4.120.0070.03311.96
5.4.110.0050.03511.96
5.4.100.0110.02911.97
5.4.90.0070.04911.96
5.4.80.0030.03911.96
5.4.70.0080.04711.96
5.4.60.0070.03311.96
5.4.50.0050.03611.96
5.4.40.0060.03411.95
5.4.30.0070.03411.95
5.4.20.0070.03511.95
5.4.10.0050.03511.95
5.4.00.0040.03711.43

preferences:
41.57 ms | 401 KiB | 5 Q