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(function ($x) { return parent::f(); }, $a); // B } public static function test() { $obj = new MyChildClass(); $obj->f(); } }

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.00318.18
8.3.50.0150.00721.85
8.3.40.0070.00718.34
8.3.30.0080.00318.82
8.3.20.0090.00020.16
8.3.10.0050.00320.20
8.3.00.0040.00419.67
8.2.180.0100.01018.04
8.2.170.0110.00422.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00322.24
8.2.110.0080.00022.24
8.2.100.0090.00317.59
8.2.90.0000.00818.86
8.2.80.0060.00317.97
8.2.70.0040.00417.38
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0050.00318.20
8.2.30.0040.00419.25
8.2.20.0000.00717.55
8.2.10.0080.00017.84
8.2.00.0000.00817.46
8.1.280.0110.01125.92
8.1.270.0050.00322.06
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00923.82
8.1.230.0000.01218.99
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0090.00017.13
8.1.190.0000.00817.22
8.1.180.0030.00518.10
8.1.170.0000.00818.64
8.1.160.0000.00721.88
8.1.150.0000.00718.72
8.1.140.0050.00317.31
8.1.130.0000.00717.71
8.1.120.0030.00417.39
8.1.110.0020.00517.24
8.1.100.0000.00717.28
8.1.90.0030.00317.36
8.1.80.0000.00717.34
8.1.70.0000.00717.29
8.1.60.0000.00817.45
8.1.50.0060.00317.41
8.1.40.0080.00017.41
8.1.30.0080.00017.45
8.1.20.0040.00417.39
8.1.10.0070.00017.27
8.1.00.0030.00617.36
8.0.300.0050.00218.77
8.0.290.0040.00416.58
8.0.280.0020.00518.34
8.0.270.0030.00316.98
8.0.260.0000.00617.05
8.0.250.0030.00316.84
8.0.240.0000.00616.74
8.0.230.0030.00316.71
8.0.220.0000.00716.77
8.0.210.0070.00016.77
8.0.200.0000.00716.74
8.0.190.0040.00416.80
8.0.180.0040.00416.66
8.0.170.0000.00816.81
8.0.160.0000.00716.68
8.0.150.0000.00716.60
8.0.140.0000.00716.68
8.0.130.0030.00313.15
8.0.120.0040.00416.73
8.0.110.0040.00416.65
8.0.100.0040.00416.82
8.0.90.0040.00416.71
8.0.80.0120.00316.75
8.0.70.0000.00716.79
8.0.60.0070.00016.70
8.0.50.0020.00516.63
8.0.30.0150.00316.75
8.0.20.0100.01317.40
8.0.10.0040.00416.75
8.0.00.0090.00916.61
7.4.330.0060.00015.00
7.4.320.0000.00616.48
7.4.300.0000.00716.30
7.4.290.0040.00416.23
7.4.280.0070.00416.26
7.4.270.0040.00416.45
7.4.260.0000.00716.30
7.4.250.0000.00816.36
7.4.240.0040.00316.42
7.4.230.0030.00316.45
7.4.220.0100.01616.42
7.4.210.0040.01116.57
7.4.200.0000.00716.22
7.4.160.0100.00616.33
7.4.150.0060.01517.40
7.4.140.0110.00717.86
7.4.130.0090.00916.28
7.4.120.0090.01016.43
7.4.110.0030.01316.32
7.4.100.0130.00416.37
7.4.90.0140.00316.32
7.4.80.0100.00716.53
7.4.70.0090.00916.38
7.4.60.0090.00616.43
7.4.50.0030.00516.14
7.4.40.0130.00316.46
7.4.30.0000.01516.30
7.4.00.0000.01414.94
7.3.330.0020.00213.12
7.3.320.0060.00312.99
7.3.310.0000.00816.12
7.3.300.0050.00216.18
7.3.290.0040.01216.06
7.3.280.0080.00716.19
7.3.270.0090.00917.40
7.3.260.0150.00616.18
7.3.250.0100.00916.15
7.3.240.0130.00316.19
7.3.230.0140.00416.40
7.3.210.0070.01016.26
7.3.200.0100.01319.39
7.3.190.0130.00316.30
7.3.180.0150.00616.24
7.3.170.0090.01316.32
7.3.160.0060.00916.32
7.2.330.0140.00416.43
7.2.320.0150.00716.29
7.2.310.0110.01116.36
7.2.300.0090.00816.25
7.2.290.0130.00916.48
7.2.00.0060.00618.95
7.1.100.0090.00618.04
7.1.70.0030.00716.96
7.1.60.0190.00319.32
7.1.50.0110.01416.98
7.1.00.0000.08022.42
7.0.200.0060.00316.32
7.0.140.0030.07321.99
7.0.60.0070.04020.03
7.0.50.0070.05017.84
7.0.40.0100.08020.21
7.0.30.0330.07020.16
7.0.20.0300.05720.16
7.0.10.0070.08320.30
7.0.00.0030.04720.06
5.6.280.0000.07720.87
5.6.210.0100.05720.51
5.6.200.0100.03718.25
5.6.190.0100.08020.48
5.6.180.0400.04020.61
5.6.170.0270.06020.46
5.6.160.0030.04320.44
5.6.150.0100.08018.25
5.6.140.0130.05718.14
5.6.130.0070.07718.23
5.6.120.0100.06720.82
5.6.110.0070.07020.97
5.6.100.0000.09021.14
5.6.90.0070.08320.95
5.6.80.0030.04320.39
5.5.350.0200.08020.40
5.5.340.0070.06717.98
5.5.330.0170.07320.27
5.5.320.0230.04320.36
5.5.310.0200.05020.30
5.5.300.0070.08017.98
5.5.290.0130.04017.97
5.5.280.0070.09320.89
5.5.270.0030.04020.88
5.5.260.0170.07720.89
5.5.250.0070.05720.63
5.5.240.0100.04020.17
5.4.450.0170.04719.32
5.4.440.0300.07019.30
5.4.430.0230.05719.48
5.4.420.0130.04319.54
5.4.410.0200.06319.29
5.4.400.0200.05718.98
5.4.390.0200.07318.86
5.4.380.0200.04719.25
5.4.370.0200.05719.09
5.4.360.0300.06319.11
5.4.350.0270.06319.22
5.4.340.0230.07718.82
5.4.320.0300.03719.22
5.4.310.0100.05019.26
5.4.300.0270.06718.99
5.4.290.0200.07019.16
5.4.280.0200.03719.13
5.4.270.0200.03319.08
5.4.260.0270.07018.97
5.4.250.0130.04719.15
5.4.240.0300.06719.03
5.4.230.0200.07319.05
5.4.220.0170.05319.21
5.4.210.0070.04719.21
5.4.200.0100.06019.13
5.4.190.0270.07319.15
5.4.180.0130.04319.05
5.4.170.0330.06719.21
5.4.160.0170.05319.04
5.4.150.0330.04319.20
5.4.140.0200.03716.46
5.4.130.0330.06016.54
5.4.120.0270.06016.56
5.4.110.0230.07316.64
5.4.100.0200.04716.42
5.4.90.0270.06716.39
5.4.80.0100.06016.41
5.4.70.0270.05716.22
5.4.60.0230.05316.22
5.4.50.0270.05316.43
5.4.40.0270.05716.27
5.4.30.0200.03716.34
5.4.20.0270.07316.51
5.4.10.0200.03316.43
5.4.00.0200.03715.96
5.3.290.0200.03714.75
5.3.280.0270.03714.76
5.3.270.0270.06714.53
5.3.260.0230.04314.77
5.3.250.0300.06714.66
5.3.240.0230.07314.62
5.3.230.0300.05014.52
5.3.220.0330.05014.65
5.3.210.0200.06014.45
5.3.200.0230.07714.48
5.3.190.0300.06714.70
5.3.180.0130.05714.69
5.3.170.0230.06314.59
5.3.160.0230.07314.50
5.3.150.0200.05314.54
5.3.140.0400.03014.46
5.3.130.0200.04314.64
5.3.120.0230.04714.52
5.3.110.0200.04014.57
5.3.100.0230.07014.07
5.3.90.0170.05314.19
5.3.80.0200.03714.15
5.3.70.0400.03014.15
5.3.60.0270.07014.01
5.3.50.0270.06713.87
5.3.40.0130.04013.87
5.3.30.0230.04013.96
5.3.20.0270.05713.75
5.3.10.0270.06713.74
5.3.00.0330.06013.56
5.2.170.0170.06012.00
5.2.160.0270.03312.00
5.2.150.0230.05712.00
5.2.140.0200.05312.00
5.2.130.0170.05312.00
5.2.120.0230.05012.00
5.2.110.0170.03012.00
5.2.100.0270.02312.00
5.2.90.0200.05312.00
5.2.80.0270.05312.00
5.2.70.0130.04712.00
5.2.60.0170.05312.00
5.2.50.0170.05712.00
5.2.40.0170.04712.00
5.2.30.0130.04012.00
5.2.20.0130.06012.00
5.2.10.0130.05712.00
5.2.00.0200.05012.00
5.1.60.0200.03712.00
5.1.50.0170.04012.00
5.1.40.0170.04312.00
5.1.30.0130.03712.00
5.1.20.0170.02312.00
5.1.10.0200.04012.00
5.1.00.0170.05712.00
5.0.50.0170.02312.00
5.0.40.0100.02312.00
5.0.30.0070.06712.00
5.0.20.0130.02312.00
5.0.10.0070.02312.00
5.0.00.0130.03712.00
4.4.90.0030.04012.00
4.4.80.0130.01712.00
4.4.70.0070.02312.00
4.4.60.0030.03012.00
4.4.50.0100.03312.00
4.4.40.0100.05312.00
4.4.30.0100.03312.00
4.4.20.0070.02312.00
4.4.10.0100.03012.00
4.4.00.0070.03012.00
4.3.110.0100.03312.00
4.3.100.0100.02712.00
4.3.90.0130.01012.00
4.3.80.0100.04712.00
4.3.70.0100.02712.00
4.3.60.0070.02012.00
4.3.50.0070.03712.00
4.3.40.0130.04312.00
4.3.30.0030.02312.00
4.3.20.0030.03312.00
4.3.10.0070.03312.00
4.3.00.0170.02012.00

preferences:
46.55 ms | 401 KiB | 5 Q