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.0140.00018.56
8.3.50.0120.00317.85
8.3.40.0070.00718.81
8.3.30.0070.00719.09
8.3.20.0080.00020.30
8.3.10.0080.00020.28
8.3.00.0040.00419.43
8.2.180.0070.01416.32
8.2.170.0070.00722.96
8.2.160.0070.00720.29
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0000.00722.19
8.2.110.0100.00021.04
8.2.100.0080.00417.66
8.2.90.0080.00018.91
8.2.80.0000.00817.97
8.2.70.0110.00017.38
8.2.60.0080.00017.90
8.2.50.0030.00518.10
8.2.40.0040.00417.78
8.2.30.0050.00319.11
8.2.20.0070.00017.60
8.2.10.0000.00818.00
8.2.00.0040.00417.66
8.1.280.0040.01125.92
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.20
8.1.230.0030.00919.15
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0000.00917.10
8.1.190.0000.00717.10
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0070.00021.89
8.1.150.0040.00418.72
8.1.140.0030.00617.30
8.1.130.0070.00017.75
8.1.120.0000.00717.33
8.1.110.0040.00417.34
8.1.100.0040.00417.22
8.1.90.0040.00417.36
8.1.80.0030.00317.22
8.1.70.0030.00317.26
8.1.60.0080.00017.47
8.1.50.0040.00417.42
8.1.40.0050.00217.43
8.1.30.0040.00417.50
8.1.20.0000.00717.54
8.1.10.0000.00717.29
8.1.00.0000.00817.38
8.0.300.0080.00018.77
8.0.290.0000.00816.58
8.0.280.0000.00718.37
8.0.270.0000.00717.11
8.0.260.0030.00317.12
8.0.250.0030.00316.75
8.0.240.0030.00316.84
8.0.230.0040.00416.83
8.0.220.0030.00316.76
8.0.210.0030.00316.63
8.0.200.0050.00216.84
8.0.190.0060.00316.73
8.0.180.0020.00516.76
8.0.170.0030.00516.69
8.0.160.0000.00716.83
8.0.150.0030.00516.59
8.0.140.0000.00716.75
8.0.130.0030.00313.21
8.0.120.0040.00416.74
8.0.110.0070.00016.76
8.0.100.0050.00216.80
8.0.90.0000.00816.64
8.0.80.0040.01316.70
8.0.70.0070.00016.77
8.0.60.0000.00816.59
8.0.50.0080.00016.58
8.0.30.0140.00716.88
8.0.20.0110.01417.40
8.0.10.0040.00416.68
8.0.00.0030.01416.58
7.4.330.0040.00415.01
7.4.320.0030.00316.28
7.4.300.0000.00716.26
7.4.290.0050.00316.48
7.4.280.0030.00716.31
7.4.270.0000.00716.33
7.4.260.0030.00316.37
7.4.250.0000.00716.38
7.4.240.0020.00516.42
7.4.230.0070.00016.57
7.4.220.0070.01116.49
7.4.210.0090.00616.46
7.4.200.0030.00316.12
7.4.160.0160.00016.13
7.4.150.0080.00817.40
7.4.140.0130.00617.86
7.4.130.0070.00916.35
7.4.120.0100.00916.33
7.4.110.0030.01316.41
7.4.100.0100.01016.46
7.4.90.0100.00716.36
7.4.80.0090.01216.30
7.4.70.0130.00316.37
7.4.60.0150.00416.48
7.4.50.0040.00416.31
7.4.40.0030.01416.17
7.4.30.0100.00716.23
7.4.00.0080.00814.73
7.3.330.0050.00012.99
7.3.320.0070.00013.04
7.3.310.0000.00715.96
7.3.300.0070.00016.05
7.3.290.0070.00716.18
7.3.280.0060.01216.17
7.3.270.0120.00617.40
7.3.260.0060.01116.38
7.3.250.0080.00916.19
7.3.240.0100.00716.15
7.3.230.0100.00716.39
7.3.210.0100.00716.20
7.3.200.0100.00719.39
7.3.190.0120.00416.34
7.3.180.0100.01016.29
7.3.170.0100.00716.27
7.3.160.0150.00016.45
7.3.120.0030.01314.45
7.3.110.0030.01014.53
7.3.100.0040.01114.54
7.3.90.0150.00014.46
7.3.80.0090.00314.94
7.3.70.0040.00814.77
7.3.60.0120.00314.43
7.3.50.0060.00914.62
7.3.40.0080.00414.13
7.3.30.0040.01114.48
7.3.20.0000.01416.34
7.3.10.0090.00616.59
7.3.00.0070.00816.47
7.2.330.0090.00916.43
7.2.320.0030.01416.37
7.2.310.0100.00716.34
7.2.300.0090.00916.20
7.2.290.0090.00916.38
7.2.250.0070.01414.60
7.2.240.0070.01414.77
7.2.230.0030.00714.76
7.2.220.0070.01014.66
7.2.210.0040.01114.95
7.2.200.0030.01014.90
7.2.190.0030.01014.79
7.2.180.0120.00314.97
7.2.170.0100.00314.73
7.2.130.0100.01016.71
7.2.120.0070.01016.81
7.2.110.0040.01116.48
7.2.100.0080.00416.54
7.2.90.0070.00716.51
7.2.80.0050.00916.42
7.2.70.0070.00716.60
7.2.60.0100.00716.75
7.2.50.0070.00716.83
7.2.40.0060.00616.74
7.2.30.0070.00716.79
7.2.20.0040.01216.52
7.2.10.0120.00616.82
7.2.00.0100.00316.43
7.1.330.0040.01115.73
7.1.320.0060.00915.42
7.1.310.0000.01315.70
7.1.300.0100.00015.71
7.1.290.0030.01215.37
7.1.280.0100.00315.49
7.1.270.0000.01415.42
7.1.260.0030.01115.71
7.1.250.0130.00315.45
7.1.240.0120.00415.71
7.1.230.0130.00315.69
7.1.220.0140.00415.54
7.1.210.0110.00415.61
7.1.200.0080.00515.58
7.1.190.0100.00715.73
7.1.180.0130.00315.43
7.1.170.0090.00315.54
7.1.160.0100.00715.48
7.1.150.0100.00715.33
7.1.140.0070.00715.37
7.1.130.0040.00915.41
7.1.120.0100.00315.65
7.1.110.0040.01115.16
7.1.100.0060.00615.29
7.1.90.0140.00315.35
7.1.80.0090.00615.48
7.1.70.0040.00816.29
7.1.60.0090.01017.43
7.1.50.0110.01116.13
7.1.40.0130.00315.50
7.1.30.0030.01315.68
7.1.20.0110.00415.57
7.1.10.0100.00715.25
7.1.00.0050.04518.93
7.0.330.0070.00714.84
7.0.320.0030.01015.05
7.0.310.0150.00015.18
7.0.300.0080.00815.39
7.0.290.0140.00015.21
7.0.280.0080.00415.36
7.0.270.0000.01314.93
7.0.260.0120.00415.09
7.0.250.0090.00315.07
7.0.240.0100.00715.25
7.0.230.0100.00315.36
7.0.220.0100.00315.14
7.0.210.0100.00315.15
7.0.200.0060.00415.92
7.0.190.0060.00615.02
7.0.180.0030.00915.27
7.0.170.0090.00315.15
7.0.160.0110.00315.10
7.0.150.0090.00615.10
7.0.140.0070.04018.48
7.0.130.0070.00714.83
7.0.120.0140.00015.33
7.0.110.0090.00915.20
7.0.100.0030.01014.86
7.0.90.0140.00414.89
7.0.80.0070.01015.14
7.0.70.0110.00315.18
7.0.60.0070.04517.51
7.0.50.0100.02316.64
7.0.40.0130.03816.62
7.0.30.0200.03816.79
7.0.20.0170.04516.82
7.0.10.0020.03716.71
7.0.00.0080.04616.82
5.6.380.0070.00414.21
5.6.370.0030.00914.08
5.6.360.0080.00414.28
5.6.350.0070.00713.71
5.6.340.0030.01313.80
5.6.330.0110.00414.45
5.6.320.0000.00914.22
5.6.310.0000.01514.14
5.6.300.0000.01314.29
5.6.290.0040.00814.05
5.6.280.0060.03517.54
5.6.270.0090.00314.09
5.6.260.0130.00014.13
5.6.250.0070.00714.00
5.6.240.0040.01113.91
5.6.230.0040.00414.04
5.6.220.0070.01014.40
5.6.210.0060.04017.38
5.6.200.0080.04116.19
5.6.190.0020.02917.18
5.6.180.0230.03817.35
5.6.170.0190.02817.24
5.6.160.0080.04517.19
5.6.150.0050.02516.12
5.6.140.0090.03516.09
5.6.130.0070.02516.08
5.6.120.0070.02417.53
5.6.110.0030.03717.60
5.6.100.0100.04017.60
5.6.90.0100.04417.65
5.6.80.0050.04617.07
5.6.70.0000.01714.13
5.6.60.0060.00513.93
5.6.50.0060.01013.80
5.6.40.0120.00314.30
5.6.30.0040.01114.30
5.6.20.0040.00413.86
5.6.10.0190.00313.94
5.6.00.0080.01313.97
5.5.380.0030.00911.60
5.5.370.0080.00411.60
5.5.360.0000.01011.60
5.5.350.0100.04616.02
5.5.340.0050.04514.76
5.5.330.0050.04616.02
5.5.320.0190.02515.96
5.5.310.0080.02515.97
5.5.300.0000.02514.84
5.5.290.0080.02514.77
5.5.280.0070.04316.29
5.5.270.0050.02216.28
5.5.260.0060.04016.19
5.5.250.0050.02916.14
5.5.240.0100.02115.99
5.5.230.0080.00311.60
5.5.220.0070.00011.60
5.5.210.0030.00511.60
5.5.200.0060.00111.60
5.5.190.0040.00711.60
5.5.180.0060.00811.60
5.5.170.0080.00811.60
5.5.160.0120.00211.60
5.5.150.0120.00311.60
5.5.140.0080.00511.60
5.5.130.0060.01011.60
5.5.120.0060.00611.60
5.5.110.0030.01011.60
5.5.100.0110.00311.60
5.5.90.0110.00211.60
5.5.80.0040.01011.60
5.5.70.0140.00411.60
5.5.60.0160.00011.60
5.5.50.0070.00711.60
5.5.40.0030.00711.60
5.5.30.0050.00911.60
5.5.20.0040.01211.60
5.5.10.0100.00311.60
5.5.00.0080.00411.60
5.4.450.0200.03315.62
5.4.440.0500.04115.53
5.4.430.0080.03015.57
5.4.420.0310.02515.58
5.4.410.0500.03215.39
5.4.400.0480.02215.45
5.4.390.0360.03315.41
5.4.380.0170.02815.09
5.4.370.0210.02915.15
5.4.360.0210.02815.18
5.4.350.0190.03315.17
5.4.340.0210.03115.09
5.4.330.0120.00511.60
5.4.320.0050.02312.06
5.4.310.0060.02212.05
5.4.300.0040.02312.05
5.4.290.0070.02212.05
5.4.280.0090.01812.00
5.4.270.0060.02112.00
5.4.260.0080.02012.00
5.4.250.0090.02612.00
5.4.240.0050.02412.00
5.4.230.0050.02412.00
5.4.220.0080.02112.00
5.4.210.0080.01912.00
5.4.200.0060.02112.00
5.4.190.0070.02312.00
5.4.180.0060.02112.00
5.4.170.0040.02212.00
5.4.160.0020.02412.00
5.4.150.0070.02212.00
5.4.140.0080.02511.84
5.4.130.0100.02011.83
5.4.120.0070.02211.81
5.4.110.0080.02011.81
5.4.100.0090.02111.81
5.4.90.0080.02111.81
5.4.80.0050.02411.81
5.4.70.0070.02211.81
5.4.60.0050.02211.81
5.4.50.0060.02111.81
5.4.40.0050.01811.80
5.4.30.0030.02211.80
5.4.20.0030.02011.80
5.4.10.0060.01811.80
5.4.00.0090.01911.55
5.3.290.0040.02612.20
5.3.280.0090.02012.16
5.3.270.0050.02312.16
5.3.260.0090.02212.16
5.3.250.0080.02012.16
5.3.240.0050.02512.16
5.3.230.0070.02112.15
5.3.220.0080.02612.14
5.3.210.0090.02112.14
5.3.200.0080.02112.14
5.3.190.0080.02012.14
5.3.180.0080.02112.13
5.3.170.0040.02512.13
5.3.160.0090.02112.14
5.3.150.0050.01912.14
5.3.140.0030.02112.13
5.3.130.0060.02512.13
5.3.120.0070.02412.13
5.3.110.0040.02712.13
5.3.100.0040.02311.86
5.3.90.0040.02311.85
5.3.80.0070.02311.85
5.3.70.0060.02111.85
5.3.60.0070.01811.84
5.3.50.0100.01811.82
5.3.40.0080.02011.82
5.3.30.0060.01911.79
5.3.20.0070.02211.69
5.3.10.0040.02111.67
5.3.00.0080.01911.67
5.2.170.0050.01910.41
5.2.160.0090.01510.41
5.2.150.0050.01810.41
5.2.140.0060.01610.41
5.2.130.0060.01310.39
5.2.120.0030.01810.39
5.2.110.0040.01510.39
5.2.100.0040.02010.39
5.2.90.0070.01510.39
5.2.80.0030.01810.39
5.2.70.0050.01610.39
5.2.60.0070.01610.37
5.2.50.0020.02010.35
5.2.40.0030.01610.34
5.2.30.0030.01610.33
5.2.20.0040.01810.32
5.2.10.0050.01610.28
5.2.00.0040.01710.21
5.1.60.0060.0129.85
5.1.50.0040.0159.85
5.1.40.0030.0149.84
5.1.30.0050.01310.01
5.1.20.0040.01710.02
5.1.10.0020.0159.88
5.1.00.0040.0139.89
5.0.50.0030.0129.12
5.0.40.0020.0169.05
5.0.30.0020.0198.96
5.0.20.0020.0128.94
5.0.10.0020.0128.93
5.0.00.0060.0148.93
4.4.90.0030.0118.19
4.4.80.0010.0118.18
4.4.70.0020.0118.18
4.4.60.0020.0138.18
4.4.50.0020.0158.19
4.4.40.0050.0128.16
4.4.30.0010.0108.18
4.4.20.0020.0128.22
4.4.10.0010.0128.22
4.4.00.0040.0158.18
4.3.110.0020.0138.13
4.3.100.0040.0108.13
4.3.90.0020.0108.12
4.3.80.0030.0148.09
4.3.70.0030.0098.12
4.3.60.0010.0158.12
4.3.50.0020.0098.11
4.3.40.0040.0138.07
4.3.30.0040.0097.45
4.3.20.0020.0087.44
4.3.10.0040.0087.42
4.3.00.0020.0129.16

preferences:
49.9 ms | 400 KiB | 5 Q