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() { (new MyChildClass())->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.0040.01118.56
8.3.50.0160.00522.00
8.3.40.0170.00318.64
8.3.30.0030.01018.93
8.3.20.0000.00820.34
8.3.10.0050.00320.37
8.3.00.0040.00419.67
8.2.180.0120.00916.50
8.2.170.0110.00422.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00722.11
8.2.110.0040.00422.26
8.2.100.0080.00417.66
8.2.90.0090.00018.92
8.2.80.0040.00417.97
8.2.70.0080.00017.37
8.2.60.0030.00517.43
8.2.50.0040.00418.07
8.2.40.0050.00318.03
8.2.30.0000.00719.25
8.2.20.0000.00817.61
8.2.10.0000.00817.90
8.2.00.0030.00517.65
8.1.280.0130.01025.92
8.1.270.0040.00422.00
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.91
8.1.230.0120.00019.10
8.1.220.0030.00617.74
8.1.210.0020.00518.77
8.1.200.0030.00616.88
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0000.00818.48
8.1.160.0050.00221.97
8.1.150.0000.00718.82
8.1.140.0040.00417.20
8.1.130.0000.00717.75
8.1.120.0030.00417.35
8.1.110.0000.00717.27
8.1.100.0080.00017.28
8.1.90.0070.00017.33
8.1.80.0040.00317.33
8.1.70.0030.00317.25
8.1.60.0000.00817.34
8.1.50.0040.00417.38
8.1.40.0000.00817.27
8.1.30.0040.00417.46
8.1.20.0050.00217.55
8.1.10.0020.00517.35
8.1.00.0000.00817.34
8.0.300.0030.00318.77
8.0.290.0070.00016.63
8.0.280.0030.00318.31
8.0.270.0030.00317.13
8.0.260.0030.00317.12
8.0.250.0030.00316.82
8.0.240.0060.00016.80
8.0.230.0000.00716.86
8.0.220.0050.00216.65
8.0.210.0040.00416.63
8.0.200.0050.00316.79
8.0.190.0040.00416.70
8.0.180.0050.00216.83
8.0.170.0080.00016.74
8.0.160.0050.00216.70
8.0.150.0000.00716.63
8.0.140.0000.00716.75
8.0.130.0050.00013.23
8.0.120.0080.00016.73
8.0.110.0070.00016.72
8.0.100.0000.00716.63
8.0.90.0070.00016.75
8.0.80.0070.00716.63
8.0.70.0070.00016.70
8.0.60.0000.00716.66
8.0.50.0000.00716.75
8.0.30.0080.01116.81
8.0.20.0140.00817.40
8.0.10.0040.00416.95
8.0.00.0090.00916.59
7.4.330.0030.00315.00
7.4.320.0060.00016.38
7.4.300.0020.00516.47
7.4.290.0050.00316.42
7.4.280.0110.00016.39
7.4.270.0040.00416.46
7.4.260.0030.00316.35
7.4.250.0000.00716.44
7.4.240.0000.00816.43
7.4.230.0000.00716.21
7.4.220.0090.00916.49
7.4.210.0090.00616.58
7.4.200.0040.00416.41
7.4.160.0040.01216.22
7.4.150.0090.01317.40
7.4.140.0100.01017.86
7.4.130.0090.00816.55
7.4.120.0110.00516.39
7.4.110.0030.01416.50
7.4.100.0090.00916.31
7.4.90.0030.01416.30
7.4.80.0090.00916.47
7.4.70.0100.00716.31
7.4.60.0100.00716.28
7.4.50.0020.00215.96
7.4.40.0130.00316.36
7.4.30.0070.01016.49
7.4.00.0060.01114.72
7.3.330.0030.00313.24
7.3.320.0000.00613.04
7.3.310.0030.00316.14
7.3.300.0000.00716.18
7.3.290.0040.01116.10
7.3.280.0100.00816.19
7.3.270.0090.00917.40
7.3.260.0140.00516.18
7.3.250.0100.00716.31
7.3.240.0100.00716.39
7.3.230.0060.01216.40
7.3.210.0030.01416.23
7.3.200.0030.01519.39
7.3.190.0120.00916.28
7.3.180.0030.01316.25
7.3.170.0100.00916.27
7.3.160.0090.00616.43
7.3.120.0050.01114.81
7.3.110.0060.01014.75
7.3.100.0110.00414.63
7.3.90.0050.00814.64
7.3.80.0050.01014.62
7.3.70.0050.00714.67
7.3.60.0040.00914.74
7.3.50.0110.00214.86
7.3.40.0040.00714.46
7.3.30.0050.00914.58
7.3.20.0030.00816.58
7.3.10.0080.00416.51
7.3.00.0090.00416.44
7.2.330.0120.01216.07
7.2.320.0040.01416.50
7.2.310.0060.01016.31
7.2.300.0030.01416.57
7.2.290.0140.00716.45
7.2.250.0070.01114.74
7.2.240.0030.01314.85
7.2.230.0060.00914.66
7.2.220.0040.00814.91
7.2.210.0090.00614.87
7.2.200.0020.01014.92
7.2.190.0100.00114.77
7.2.180.0020.01314.82
7.2.170.0090.00414.64
7.2.00.0070.00418.95
7.1.330.0040.01015.76
7.1.320.0050.00915.59
7.1.310.0030.00915.62
7.1.300.0030.00815.58
7.1.290.0050.00615.54
7.1.280.0030.00915.57
7.1.270.0090.00315.50
7.1.260.0050.00515.54
7.1.100.0040.00717.86
7.1.70.0000.00816.96
7.1.60.0120.01219.32
7.1.50.0060.01816.94
7.1.00.0070.07322.44
7.0.200.0070.01316.40
7.0.140.0070.07022.14
7.0.60.0070.08719.91
7.0.50.0100.07717.95
7.0.40.0100.08320.27
7.0.30.0400.07020.24
7.0.20.0200.08320.07
7.0.10.0030.09320.33
7.0.00.0070.04020.25
5.6.280.0030.07321.09
5.6.210.0000.04720.72
5.6.200.0030.05018.24
5.6.190.0030.07020.50
5.6.180.0370.04720.67
5.6.170.0370.04320.44
5.6.160.0030.09020.55
5.6.150.0030.04018.21
5.6.140.0130.07018.18
5.6.130.0200.05018.18
5.6.120.0070.05320.82
5.6.110.0030.05020.97
5.6.100.0200.07021.09
5.6.90.0030.09021.02
5.6.80.0100.08320.52
5.5.350.0170.06020.35
5.5.340.0070.07718.07
5.5.330.0030.05720.37
5.5.320.0370.05720.38
5.5.310.0130.04720.28
5.5.300.0130.06718.09
5.5.290.0100.07318.00
5.5.280.0100.07320.66
5.5.270.0000.09320.89
5.5.260.0100.07320.62
5.5.250.0130.07720.70
5.5.240.0130.03320.27
5.4.450.0430.05719.61
5.4.440.0700.09719.48
5.4.430.0170.04719.34
5.4.420.1100.07019.70
5.4.410.1070.05719.07
5.4.400.0530.06019.29
5.4.390.0700.05318.83
5.4.380.0470.06718.73
5.4.370.0330.05718.80
5.4.360.0230.05718.75
5.4.350.0370.04718.77
5.4.340.0370.04318.80
5.4.320.0050.03712.51
5.4.310.0030.04112.51
5.4.300.0060.03612.51
5.4.290.0040.04012.50
5.4.280.0080.03212.41
5.4.270.0040.03812.41
5.4.260.0080.03512.40
5.4.250.0070.03612.40
5.4.240.0060.03612.40
5.4.230.0090.03512.39
5.4.220.0050.03912.39
5.4.210.0060.04112.39
5.4.200.0070.04112.40
5.4.190.0080.03912.39
5.4.180.0070.03412.39
5.4.170.0050.03612.40
5.4.160.0060.03512.40
5.4.150.0040.03812.39
5.4.140.0080.03612.08
5.4.130.0070.03312.07
5.4.120.0060.03512.02
5.4.110.0050.03612.02
5.4.100.0050.03612.02
5.4.90.0070.03512.02
5.4.80.0040.03812.02
5.4.70.0050.03512.02
5.4.60.0100.03012.01
5.4.50.0050.03612.02
5.4.40.0050.03512.01
5.4.30.0070.03312.00
5.4.20.0040.03712.00
5.4.10.0030.03612.00
5.4.00.0040.03711.49
5.3.290.0110.03412.80
5.3.280.0090.03412.71
5.3.270.0090.03612.73
5.3.260.0040.04212.72
5.3.250.0050.03712.72
5.3.240.0060.03712.72
5.3.230.0050.03912.71
5.3.220.0040.04112.68
5.3.210.0040.04412.68
5.3.200.0060.03712.68
5.3.190.0100.03312.68
5.3.180.0060.03612.68
5.3.170.0050.03812.67
5.3.160.0080.03412.67
5.3.150.0060.03712.68
5.3.140.0060.03612.66
5.3.130.0070.03712.66
5.3.120.0080.03612.66
5.3.110.0080.03712.66
5.3.100.0080.03412.13
5.3.90.0020.04012.11
5.3.80.0040.03812.10
5.3.70.0080.03412.10
5.3.60.0050.03712.09
5.3.50.0060.03612.04
5.3.40.0070.03712.04
5.3.30.0040.03612.00
5.3.20.0050.03611.78
5.3.10.0050.03511.74
5.3.00.0060.03611.73
5.2.170.0060.0299.23
5.2.160.0070.0329.22
5.2.150.0060.0299.22
5.2.140.0050.0309.21
5.2.130.0030.0319.18
5.2.120.0050.0289.18
5.2.110.0080.0259.19
5.2.100.0060.0279.18
5.2.90.0070.0269.18
5.2.80.0050.0299.18
5.2.70.0060.0359.18
5.2.60.0060.0399.13
5.2.50.0040.0309.10
5.2.40.0080.0299.07
5.2.30.0050.0309.05
5.2.20.0040.0319.04
5.2.10.0050.0288.95
5.2.00.0030.0328.81
5.1.60.0040.0248.10
5.1.50.0040.0258.09
5.1.40.0060.0228.07
5.1.30.0040.0268.42
5.1.20.0050.0268.45
5.1.10.0040.0268.17
5.1.00.0030.0268.17
5.0.50.0040.0206.64
5.0.40.0020.0206.51
5.0.30.0040.0306.32
5.0.20.0050.0176.28
5.0.10.0040.0196.27
5.0.00.0030.0316.25
4.4.90.0040.0144.78
4.4.80.0010.0164.76
4.4.70.0050.0134.75
4.4.60.0050.0134.76
4.4.50.0020.0164.77
4.4.40.0010.0274.70
4.4.30.0020.0164.75
4.4.20.0040.0144.84
4.4.10.0040.0184.85
4.4.00.0040.0244.76
4.3.110.0020.0174.67
4.3.100.0000.0184.67
4.3.90.0000.0174.63
4.3.80.0050.0224.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0030.0154.62
4.3.40.0020.0254.54
4.3.30.0010.0163.30
4.3.20.0040.0143.28
4.3.10.0000.0173.23
4.3.00.0100.0206.73

preferences:
38.37 ms | 401 KiB | 5 Q