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) { 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.00718.50
8.3.50.0140.00721.89
8.3.40.0070.00718.89
8.3.30.0170.00319.09
8.3.20.0000.00820.34
8.3.10.0050.00320.36
8.3.00.0080.00019.43
8.2.180.0140.00018.29
8.2.170.0100.01018.59
8.2.160.0130.00322.96
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0030.00322.17
8.2.110.0100.00022.07
8.2.100.0090.00317.91
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0090.00019.68
8.2.50.0040.00418.07
8.2.40.0080.00018.03
8.2.30.0000.00719.13
8.2.20.0040.00417.56
8.2.10.0050.00318.17
8.2.00.0040.00417.64
8.1.280.0110.00425.92
8.1.270.0050.00522.17
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.83
8.1.230.0080.00319.10
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00317.22
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0040.00718.57
8.1.160.0000.00721.86
8.1.150.0040.00418.95
8.1.140.0000.00717.46
8.1.130.0030.00317.88
8.1.120.0030.00317.45
8.1.110.0000.00817.45
8.1.100.0000.00717.35
8.1.90.0000.00717.43
8.1.80.0070.00017.49
8.1.70.0050.00317.34
8.1.60.0030.00517.47
8.1.50.0040.00417.52
8.1.40.0040.00417.50
8.1.30.0030.00517.57
8.1.20.0000.00817.61
8.1.10.0040.00417.39
8.1.00.0000.00917.46
8.0.300.0030.00618.77
8.0.290.0040.00416.63
8.0.280.0040.00418.29
8.0.270.0070.00017.22
8.0.260.0030.00317.06
8.0.250.0070.00016.88
8.0.240.0000.00816.85
8.0.230.0030.00316.80
8.0.220.0000.00716.75
8.0.210.0000.00716.73
8.0.200.0030.00316.90
8.0.190.0040.00416.94
8.0.180.0030.00316.79
8.0.170.0040.00416.95
8.0.160.0000.00716.91
8.0.150.0030.00316.73
8.0.140.0040.00416.81
8.0.130.0000.00513.31
8.0.120.0040.00416.85
8.0.110.0000.00716.85
8.0.100.0030.00516.76
8.0.90.0080.00016.75
8.0.80.0140.00716.83
8.0.70.0040.00416.68
8.0.60.0050.00216.86
8.0.50.0040.00416.76
8.0.30.0170.00217.08
8.0.20.0080.01217.40
8.0.10.0040.00416.84
8.0.00.0080.00816.73
7.4.330.0050.00015.00
7.4.320.0030.00316.50
7.4.300.0000.00616.40
7.4.290.0070.00016.52
7.4.280.0070.00016.54
7.4.270.0000.00816.59
7.4.260.0000.00716.53
7.4.250.0030.00516.38
7.4.240.0040.00416.45
7.4.230.0000.00716.38
7.4.220.0160.01316.56
7.4.210.0000.01416.42
7.4.200.0070.00016.47
7.4.160.0130.00316.42
7.4.150.0100.00717.40
7.4.140.0080.00817.86
7.4.130.0050.01116.62
7.4.120.0090.00716.53
7.4.110.0030.01316.39
7.4.100.0150.00316.59
7.4.90.0160.00316.60
7.4.80.0110.00616.55
7.4.70.0110.01116.55
7.4.60.0090.00616.41
7.4.50.0000.00816.49
7.4.40.0060.00916.38
7.4.30.0110.00616.41
7.4.00.0080.01014.92
7.3.330.0030.00513.13
7.3.320.0000.00513.04
7.3.310.0070.00016.35
7.3.300.0030.00316.14
7.3.290.0070.01116.36
7.3.280.0110.00716.28
7.3.270.0170.00317.40
7.3.260.0200.00216.30
7.3.250.0110.00616.45
7.3.240.0100.00716.44
7.3.230.0040.01216.39
7.3.210.0140.00316.20
7.3.200.0120.00919.39
7.3.190.0080.00916.38
7.3.180.0070.01316.23
7.3.170.0040.01216.50
7.3.160.0030.01216.59
7.3.120.0070.00814.68
7.3.110.0080.00614.48
7.3.100.0070.01014.78
7.3.90.0060.00814.90
7.3.80.0040.01114.81
7.3.70.0060.00514.82
7.3.60.0060.00614.81
7.3.50.0050.01414.68
7.3.40.0070.00614.70
7.3.30.0040.01014.52
7.3.20.0060.00916.70
7.3.10.0040.00716.44
7.3.00.0030.01116.59
7.2.330.0070.01016.65
7.2.320.0100.01316.49
7.2.310.0100.00716.24
7.2.300.0070.01416.31
7.2.290.0120.01216.29
7.2.250.0100.01015.15
7.2.240.0070.01014.97
7.2.230.0060.00714.88
7.2.220.0020.01015.01
7.2.210.0110.00514.91
7.2.200.0070.00715.03
7.2.190.0030.01214.94
7.2.180.0050.00814.85
7.2.170.0070.01014.94
7.2.160.0070.01014.88
7.2.150.0060.00916.48
7.2.140.0000.01716.95
7.2.130.0090.00616.77
7.2.120.0060.00916.67
7.2.110.0070.00316.48
7.2.100.0120.00316.95
7.2.90.0000.01616.67
7.2.80.0030.00916.95
7.2.70.0000.01517.03
7.2.60.0090.00616.93
7.2.50.0000.01816.70
7.2.40.0070.00716.76
7.2.30.0090.00616.72
7.2.20.0030.00916.88
7.2.10.0060.00616.98
7.2.00.0100.00417.85
7.1.330.0050.00915.75
7.1.320.0050.00915.54
7.1.310.0070.00515.80
7.1.300.0070.00815.78
7.1.290.0090.00315.58
7.1.280.0030.01015.75
7.1.270.0050.00615.85
7.1.260.0030.01215.78
7.1.250.0060.00315.96
7.1.100.0040.00717.91
7.1.70.0000.00717.09
7.1.60.0070.01819.32
7.1.50.0140.01116.89
7.1.00.0070.07322.44
7.0.200.0030.00616.60
7.0.140.0030.07022.11
7.0.60.0170.07019.95
7.0.50.0100.06017.98
7.0.40.0070.05320.18
7.0.30.0300.07320.09
7.0.20.0300.05320.09
7.0.10.0170.07720.06
7.0.00.0100.07720.27
5.6.280.0000.09021.00
5.6.210.0130.04720.58
5.6.200.0070.05018.18
5.6.190.0000.04720.41
5.6.180.0330.06720.45
5.6.170.0300.04020.43
5.6.160.0100.07720.52
5.6.150.0100.06318.21
5.6.140.0030.05718.17
5.6.130.0000.09318.14
5.6.120.0030.08021.03
5.6.110.0170.07321.13
5.6.100.0300.04721.12
5.6.90.0070.03720.98
5.6.80.0130.06020.35
5.6.70.3400.03020.52
5.5.350.0030.08020.34
5.5.340.0030.04017.96
5.5.330.0070.06020.13
5.5.320.0270.06720.20
5.5.310.0270.08020.20
5.5.300.0070.08017.93
5.5.290.0070.06318.01
5.5.280.0070.06320.78
5.5.270.0100.06320.77
5.5.260.0170.07320.90
5.5.250.0070.06020.79
5.5.240.0000.03320.38
5.4.450.0930.05719.61
5.4.440.0830.05019.19
5.4.430.0900.05719.54
5.4.420.0130.05019.47
5.4.410.0770.08319.50
5.4.400.0970.05319.28
5.4.390.0970.06019.15
5.4.380.0430.06318.75
5.4.370.0270.05718.76
5.4.360.0230.05718.63
5.4.350.0230.06018.59
5.4.340.0300.05318.70
5.4.320.0060.03812.51
5.4.310.0070.04212.51
5.4.300.0040.04312.51
5.4.290.0100.03312.50
5.4.280.0070.04712.40
5.4.270.0100.03812.41
5.4.260.0100.03512.40
5.4.250.0070.03812.40
5.4.240.0040.04912.40
5.4.230.0070.04812.39
5.4.220.0130.03512.39
5.4.210.0070.03612.39
5.4.200.0060.04012.39
5.4.190.0080.04212.39
5.4.180.0120.03112.39
5.4.170.0040.03712.41
5.4.160.0090.03812.39
5.4.150.0040.04412.39
5.4.140.0060.04012.08
5.4.130.0100.03712.07
5.4.120.0060.03912.02
5.4.110.0070.04112.02
5.4.100.0050.03512.02
5.4.90.0070.03512.02
5.4.80.0060.03512.02
5.4.70.0060.03312.01
5.4.60.0060.04112.01
5.4.50.0070.03712.02
5.4.40.0060.03512.00
5.4.30.0080.03312.00
5.4.20.0090.03212.00
5.4.10.0060.03312.00
5.4.00.0080.04111.49
5.3.290.0030.04212.80
5.3.280.0050.04612.71
5.3.270.0080.03912.73
5.3.260.0060.03912.72
5.3.250.0050.03912.72
5.3.240.0050.03712.71
5.3.230.0040.03912.71
5.3.220.0080.03912.68
5.3.210.0050.03912.68
5.3.200.0080.03312.68
5.3.190.0090.03412.68
5.3.180.0070.03412.68
5.3.170.0030.03812.67
5.3.160.0080.03412.68
5.3.150.0040.04012.67
5.3.140.0050.03712.66
5.3.130.0080.04112.65
5.3.120.0060.03912.66
5.3.110.0050.03912.66
5.3.100.0060.03612.13
5.3.90.0050.03812.11
5.3.80.0040.03612.10
5.3.70.0100.04912.11
5.3.60.0080.04212.09
5.3.50.0060.03712.04
5.3.40.0070.03612.04
5.3.30.0100.03711.99
5.3.20.0060.04811.78
5.3.10.0060.04211.74
5.3.00.0070.03511.73
5.2.170.0040.0379.23
5.2.160.0040.0369.22
5.2.150.0050.0399.22
5.2.140.0080.0369.22
5.2.130.0090.0339.18
5.2.120.0090.0239.18
5.2.110.0060.0389.19
5.2.100.0060.0269.18
5.2.90.0040.0309.18
5.2.80.0050.0339.18
5.2.70.0040.0309.18
5.2.60.0030.0329.14
5.2.50.0040.0319.11
5.2.40.0030.0319.08
5.2.30.0070.0279.05
5.2.20.0020.0389.05
5.2.10.0030.0298.95
5.2.00.0040.0298.81
5.1.60.0040.0348.10
5.1.50.0050.0248.09
5.1.40.0080.0218.07
5.1.30.0040.0268.42
5.1.20.0030.0288.45
5.1.10.0030.0278.17
5.1.00.0050.0258.17
5.0.50.0060.0246.64
5.0.40.0030.0266.50
5.0.30.0040.0446.32
5.0.20.0030.0256.29
5.0.10.0050.0186.26
5.0.00.0020.0316.25
4.4.90.0060.0194.78
4.4.80.0020.0154.75
4.4.70.0030.0144.76
4.4.60.0040.0234.75
4.4.50.0030.0194.77
4.4.40.0040.0354.71
4.4.30.0050.0124.76
4.4.20.0040.0324.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0040.0204.67
4.3.100.0030.0194.66
4.3.90.0020.0144.63
4.3.80.0030.0304.58
4.3.70.0030.0204.63
4.3.60.0010.0214.63
4.3.50.0020.0204.62
4.3.40.0030.0334.53
4.3.30.0040.0223.30
4.3.20.0040.0263.28
4.3.10.0000.0173.24
4.3.00.0070.0178.16

preferences:
44.92 ms | 401 KiB | 5 Q