3v4l.org

run code in 300+ PHP versions simultaneously
<?php function userland_call_user_func(callable $function, ...$args) { return $function(...$args); } class Test { private function foo($bar) { echo new Exception; } public function call($callfunc) { $callfunc(array($this, 'foo'), 'bar'); } } $o = new Test; $o->call('call_user_func'); $o->call('userland_call_user_func');

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.0000.01518.67
8.3.50.0150.00522.03
8.3.40.0040.01418.79
8.3.30.0110.00419.09
8.3.20.0050.00320.25
8.3.10.0030.00620.50
8.3.00.0040.00419.25
8.2.180.0110.00416.50
8.2.170.0120.00322.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.63
8.2.110.0060.00321.00
8.2.100.0190.00317.63
8.2.90.0000.00818.03
8.2.80.0000.00820.37
8.2.70.0000.00917.63
8.2.60.0000.00817.50
8.2.50.0040.00418.10
8.2.40.0000.00819.48
8.2.30.0000.00718.17
8.2.20.0000.00817.86
8.2.10.0000.00818.05
8.2.00.0000.00817.75
8.1.280.0090.00925.92
8.1.270.0080.00018.33
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0070.00322.02
8.1.230.0060.00620.97
8.1.220.0000.00817.74
8.1.210.0000.00818.98
8.1.200.0060.00617.24
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0000.00818.54
8.1.160.0050.00321.94
8.1.150.0040.00418.95
8.1.140.0070.00017.52
8.1.130.0000.00717.84
8.1.120.0080.00017.38
8.1.110.0030.00517.48
8.1.100.0050.00217.47
8.1.90.0070.00017.42
8.1.80.0000.00717.39
8.1.70.0000.00717.36
8.1.60.0040.00417.59
8.1.50.0060.00317.48
8.1.40.0000.00817.54
8.1.30.0000.00817.52
8.1.20.0040.00417.61
8.1.10.0040.00417.47
8.1.00.0030.00617.55
8.0.300.0070.00020.08
8.0.290.0040.00416.63
8.0.280.0030.00318.46
8.0.270.0030.00317.16
8.0.260.0060.00017.27
8.0.250.0040.00417.01
8.0.240.0040.00416.93
8.0.230.0040.00417.05
8.0.220.0070.00016.93
8.0.210.0030.00316.97
8.0.200.0050.00217.00
8.0.190.0070.00016.88
8.0.180.0000.00717.01
8.0.170.0080.00017.05
8.0.160.0030.00316.96
8.0.150.0050.00216.88
8.0.140.0080.00016.95
8.0.130.0050.00213.34
8.0.120.0030.00517.00
8.0.110.0000.00716.97
8.0.100.0000.00716.83
8.0.90.0040.00417.00
8.0.80.0090.00917.03
8.0.70.0070.00016.97
8.0.60.0040.00416.81
8.0.50.0080.00016.97
8.0.30.0110.00817.14
8.0.20.0140.00517.43
8.0.10.0040.00417.14
8.0.00.0090.01016.83
7.4.330.0030.00315.03
7.4.320.0030.00316.64
7.4.300.0000.00616.59
7.4.290.0000.00716.53
7.4.280.0030.00616.60
7.4.270.0060.00016.57
7.4.260.0060.00016.63
7.4.250.0040.00416.47
7.4.240.0010.00616.52
7.4.230.0000.00716.52
7.4.220.0110.01416.52
7.4.210.0090.00616.65
7.4.200.0050.00216.41
7.4.160.0110.00516.33
7.4.150.0150.00317.40
7.4.140.0060.01117.86
7.4.130.0100.00916.57
7.4.120.0120.00716.46
7.4.110.0110.01216.57
7.4.100.0070.01016.63
7.4.90.0140.00316.57
7.4.80.0120.00619.39
7.4.70.0090.00916.46
7.4.60.0090.01016.53
7.4.50.0000.00416.36
7.4.40.0140.00316.71
7.4.30.0060.01216.37
7.4.00.0100.00715.13
7.3.330.0050.00013.38
7.3.320.0000.00613.24
7.3.310.0000.00716.20
7.3.300.0000.00716.25
7.3.290.0060.00916.38
7.3.280.0080.00816.39
7.3.270.0060.01217.40
7.3.260.0150.00816.60
7.3.250.0080.01116.40
7.3.240.0070.01116.51
7.3.230.0120.00616.39
7.3.210.0070.01016.57
7.3.200.0110.00819.39
7.3.190.0140.00916.37
7.3.180.0070.01016.45
7.3.170.0080.00816.45
7.3.160.0080.00916.38
7.2.330.0070.01016.75
7.2.320.0180.00316.68
7.2.310.0030.01316.52
7.2.300.0180.00616.49
7.2.290.0090.00916.70
7.2.60.0070.00716.72
7.2.00.0000.01919.35
7.1.200.0030.01015.66
7.1.100.0070.01018.05
7.1.70.0040.00417.18
7.1.60.0060.01319.32
7.1.50.0230.01734.77
7.1.00.0070.07322.40
7.0.200.0060.00316.46
7.0.140.0070.06722.15
7.0.60.0070.06019.94
7.0.50.0100.05717.87
7.0.40.0070.08320.09
7.0.30.0130.04720.07
7.0.20.0100.05720.05
7.0.10.0100.08720.19
7.0.00.0130.08320.16
5.6.280.0000.07321.13
5.6.210.0070.04020.47
5.6.200.0100.07718.22
5.6.190.0070.08320.64
5.6.180.0530.06320.46
5.6.170.0100.05020.39
5.6.160.0170.07320.70
5.6.150.0070.04718.12
5.6.140.0100.05318.18
5.6.130.0030.04018.27
5.6.120.0070.08320.91
5.6.110.0100.07721.14
5.6.100.0070.04020.96
5.6.90.0130.07720.98
5.6.80.0130.07020.36
5.5.350.0130.07720.45
5.5.340.0130.08018.09
5.5.330.0100.05020.40
5.5.320.0230.04320.36
5.5.310.0270.03720.24
5.5.300.0130.04717.99
5.5.290.0100.07717.93
5.5.280.0100.05320.88
5.5.270.0130.08020.83
5.5.260.0130.06320.79
5.5.250.0030.05320.50
5.5.240.0100.04720.23
5.4.450.0600.03319.46
5.4.440.0800.05319.48
5.4.430.0570.06019.45
5.4.420.0670.00019.46
5.4.410.0630.00019.31
5.4.400.0770.00019.13
5.4.390.0600.00019.21
5.4.380.0630.00019.05
5.4.370.0630.00019.26
5.4.360.0630.00019.16
5.4.350.0630.00019.24
5.4.340.0630.00019.03
5.4.320.0060.03512.51
5.4.310.0030.04012.51
5.4.300.0040.03712.52
5.4.290.0070.03712.51
5.4.280.0040.03812.41
5.4.270.0090.04312.40
5.4.260.0060.05012.41
5.4.250.0050.03812.41
5.4.240.0050.03512.41
5.4.230.0020.03912.39
5.4.220.0070.03712.40
5.4.210.0050.03512.39
5.4.200.0040.05012.40
5.4.190.0060.03512.39
5.4.180.0040.03612.39
5.4.170.0060.03512.40
5.4.160.0050.03412.39
5.4.150.0070.04112.39
5.4.140.0030.03912.09
5.4.130.0080.03312.06
5.4.120.0080.03212.03
5.4.110.0050.03512.03
5.4.100.0050.03512.02
5.4.90.0030.04312.03
5.4.80.0040.03712.02
5.4.70.0060.03312.02
5.4.60.0050.04612.02
5.4.50.0120.03912.02
5.4.40.0020.03812.01
5.4.30.0100.03112.01
5.4.20.0050.03512.00
5.4.10.0030.03712.00
5.4.00.0030.04011.50
5.3.290.0090.03812.80
5.3.280.0060.03712.71
5.3.270.0030.04112.72
5.3.260.0060.03812.72
5.3.250.0060.04112.72
5.3.240.0020.04212.72
5.3.230.0090.03712.71
5.3.220.0090.04112.68
5.3.210.0050.04212.68
5.3.200.0040.03812.68
5.3.190.0040.03812.68
5.3.180.0070.03712.68
5.3.170.0090.03412.67
5.3.160.0040.04212.68
5.3.150.0060.04112.67
5.3.140.0030.03812.66
5.3.130.0040.04012.66
5.3.120.0050.03912.66
5.3.110.0010.04212.66
5.3.100.0050.03612.13
5.3.90.0060.03512.11
5.3.80.0030.03812.09
5.3.70.0090.03312.09
5.3.60.0060.03612.08
5.3.50.0060.03412.02
5.3.40.0090.03512.02
5.3.30.0070.03911.98
5.3.20.0080.03311.77
5.3.10.0050.03411.74
5.3.00.0070.04511.71
5.2.170.0020.0319.22
5.2.160.0070.0249.21
5.2.150.0040.0309.22
5.2.140.0030.0309.21
5.2.130.0070.0309.18
5.2.120.0030.0289.17
5.2.110.0040.0299.18
5.2.100.0040.0279.18
5.2.90.0010.0329.18
5.2.80.0070.0319.17
5.2.70.0040.0299.17
5.2.60.0040.0309.13
5.2.50.0020.0329.09
5.2.40.0050.0289.07
5.2.30.0030.0309.05
5.2.20.0040.0289.04
5.2.10.0050.0268.95
5.2.00.0030.0298.81
5.1.60.0010.0328.09
5.1.50.0070.0278.09
5.1.40.0030.0248.07
5.1.30.0060.0238.42
5.1.20.0040.0318.44
5.1.10.0040.0248.16
5.1.00.0050.0258.16
5.0.50.0040.0206.64
5.0.40.0040.0186.50
5.0.30.0050.0306.31
5.0.20.0040.0246.28
5.0.10.0050.0186.25
5.0.00.0040.0326.24
4.4.90.0020.0164.78
4.4.80.0020.0154.76
4.4.70.0060.0124.75
4.4.60.0020.0164.75
4.4.50.0030.0144.77
4.4.40.0030.0304.70
4.4.30.0020.0204.76
4.4.20.0000.0174.85
4.4.10.0030.0154.84
4.4.00.0010.0254.76
4.3.110.0080.0174.67
4.3.100.0050.0174.67
4.3.90.0040.0124.63
4.3.80.0040.0314.58
4.3.70.0020.0144.63
4.3.60.0010.0154.63
4.3.50.0030.0154.62
4.3.40.0030.0234.54
4.3.30.0010.0163.30
4.3.20.0040.0133.29
4.3.10.0030.0143.23
4.3.00.0000.0207.07

preferences:
46.87 ms | 401 KiB | 5 Q