3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected function foo1() { return 'foo1'; } } $foo = new Foo(); $works = function () { return call_user_func(array($this, 'foo1')); }; $broken = function () { return $this->foo1(); }; $works = $works->bindTo($foo, $foo); $broken = $broken->bindTo($foo, $foo); var_dump($works()); var_dump($broken());

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.40.0080.00818.73
8.3.30.0140.00519.04
8.3.20.0000.00720.18
8.3.10.0080.00021.73
8.3.00.0050.00319.26
8.2.170.0070.00722.96
8.2.160.0090.00620.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.23
8.2.110.0030.00619.36
8.2.100.0040.00717.75
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.91
8.2.50.0090.00018.07
8.2.40.0040.00419.88
8.2.30.0080.00018.11
8.2.20.0000.00717.67
8.2.10.0000.00818.05
8.2.00.0040.00417.63
8.1.270.0080.00020.65
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.79
8.1.230.0090.00318.76
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0050.00518.31
8.1.160.0000.00822.05
8.1.150.0040.00418.84
8.1.140.0080.00017.51
8.1.130.0000.00717.73
8.1.120.0030.00717.46
8.1.110.0040.00417.48
8.1.100.0040.00417.48
8.1.90.0040.00417.51
8.1.80.0060.00317.41
8.1.70.0000.00717.45
8.1.60.0000.00917.53
8.1.50.0040.00417.57
8.1.40.0040.00417.39
8.1.30.0040.00417.64
8.1.20.0000.00717.70
8.1.10.0030.00517.51
8.1.00.0020.00517.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0030.00317.14
8.0.260.0000.00717.22
8.0.250.0030.00316.98
8.0.240.0000.00616.97
8.0.230.0070.00016.98
8.0.220.0040.00416.90
8.0.210.0060.00316.93
8.0.200.0000.00617.00
8.0.190.0000.00816.96
8.0.180.0040.00416.94
8.0.170.0050.00316.97
8.0.160.0040.00416.80
8.0.150.0050.00216.86
8.0.140.0070.00016.79
8.0.130.0030.00313.36
8.0.120.0040.00416.91
8.0.110.0040.00416.90
8.0.100.0000.00716.96
8.0.90.0080.00016.95
8.0.80.0110.00316.94
8.0.70.0040.00416.79
8.0.60.0000.00716.68
8.0.50.0050.00316.87
8.0.30.0100.01517.21
8.0.20.0140.00617.40
8.0.10.0050.00216.96
8.0.00.0060.01116.74
7.4.330.0050.00015.09
7.4.320.0060.00016.46
7.4.300.0070.00016.65
7.4.290.0000.00716.66
7.4.280.0030.00516.64
7.4.270.0030.00316.64
7.4.260.0040.00416.48
7.4.250.0030.00516.46
7.4.240.0050.00216.51
7.4.230.0040.00416.48
7.4.220.0130.00916.54
7.4.210.0120.00616.53
7.4.200.0000.00716.30
7.4.160.0060.00916.57
7.4.150.0170.00017.40
7.4.140.0120.00717.86
7.4.130.0080.00816.47
7.4.120.0080.00816.37
7.4.110.0070.01816.44
7.4.100.0090.01516.38
7.4.90.0100.00616.43
7.4.80.0090.01219.39
7.4.70.0180.00416.48
7.4.60.0110.00716.26
7.4.50.0040.00416.39
7.4.40.0120.01216.58
7.4.30.0130.00916.30
7.4.00.0070.01014.77
7.3.330.0000.00513.31
7.3.320.0060.00613.09
7.3.310.0070.00016.34
7.3.300.0030.00316.31
7.3.290.0060.00016.33
7.3.280.0090.00916.26
7.3.270.0090.01717.40
7.3.260.0120.00616.65
7.3.250.0070.01416.22
7.3.240.0170.00016.46
7.3.230.0150.00316.39
7.3.210.0100.00716.22
7.3.200.0030.01619.39
7.3.190.0100.00716.49
7.3.180.0090.00616.33
7.3.170.0060.01616.60
7.3.160.0180.00416.22
7.2.330.0120.00616.48
7.2.320.0100.00616.76
7.2.310.0110.00616.78
7.2.300.0070.01316.41
7.2.290.0110.00716.52
7.2.00.0070.00319.18
7.1.100.0030.00818.21
7.1.70.0000.00816.95
7.1.60.0140.00319.50
7.1.50.0070.01416.89
7.1.00.0000.07722.43
7.0.200.0880.00014.77
7.0.140.0000.07722.18
7.0.60.0100.03319.90
7.0.50.0070.04317.86
7.0.40.0100.08720.20
7.0.30.0400.07320.16
7.0.20.0300.07020.24
7.0.10.0330.08320.12
7.0.00.0030.09020.07
5.6.280.0000.07321.13
5.6.210.0100.06020.77
5.6.200.0030.05018.18
5.6.190.0030.08720.67
5.6.180.0270.08020.46
5.6.170.0230.03720.47
5.6.160.0070.08720.47
5.6.150.0030.07718.16
5.6.140.0000.05018.18
5.6.130.0070.08718.24
5.6.120.0070.04720.98
5.6.110.0070.08321.00
5.6.100.0170.07320.99
5.6.90.0200.07020.96
5.6.80.0070.07320.42
5.6.70.0300.06320.38
5.5.350.0100.08320.35
5.5.340.0030.05017.98
5.5.330.0070.06320.27
5.5.320.0170.07720.23
5.5.310.0100.05320.27
5.5.300.0100.06317.98
5.5.290.0030.08317.94
5.5.280.0130.08320.94
5.5.270.0100.08020.87
5.5.260.0070.05320.64
5.5.250.0030.07320.62
5.5.240.0070.05020.27
5.4.450.0630.06019.59
5.4.440.1000.04719.45
5.4.430.0770.05719.48
5.4.420.0370.05019.63
5.4.410.0800.06019.21
5.4.400.0200.05318.76
5.4.390.0130.05318.76
5.4.380.0170.06018.84
5.4.370.0170.05318.63
5.4.360.0170.05318.62
5.4.350.0100.06718.73
5.4.340.0330.06018.70
5.4.320.0230.05718.61
5.4.310.0170.05718.51
5.4.300.0200.05718.61
5.4.290.0230.05018.63
5.4.280.0200.05318.47
5.4.270.0200.05718.50
5.4.260.0330.06718.46
5.4.250.0200.07718.72
5.4.240.0270.07018.70
5.4.230.0200.06318.52
5.4.220.0170.06718.72
5.4.210.0270.06318.55
5.4.200.0270.05716.61
5.4.190.0070.07018.57
5.4.180.0300.05018.74
5.4.170.0200.07018.77
5.4.160.0230.06018.81
5.4.150.0200.05318.78
5.4.140.0230.04716.18
5.4.130.0070.06016.48
5.4.120.0230.04316.47
5.4.110.0300.03716.22
5.4.100.0230.04716.22
5.4.90.0170.05316.37
5.4.80.0300.04316.30
5.4.70.0200.05316.17
5.4.60.0200.05016.27
5.4.50.0170.05016.39
5.4.40.0130.05716.23
5.4.30.0200.04316.26
5.4.20.0270.04316.22
5.4.10.0200.04716.20
5.4.00.0230.06715.65
5.3.290.0170.06014.80
5.3.280.0200.06314.73
5.3.270.0200.05714.75
5.3.260.0200.05714.74
5.3.250.0170.07014.74
5.3.240.0130.06314.79
5.3.230.0330.05314.59
5.3.220.0200.05714.60
5.3.210.0230.05014.79
5.3.200.0330.05714.61
5.3.190.0370.05314.75
5.3.180.0200.04714.56
5.3.170.0170.05014.54
5.3.160.0270.04314.61
5.3.150.0130.06014.55
5.3.140.0230.04714.57
5.3.130.0230.05014.57
5.3.120.0170.05714.53
5.3.110.0000.07014.68
5.3.100.0230.05714.17
5.3.90.0230.07014.13
5.3.80.0130.05714.07
5.3.70.0230.05014.01
5.3.60.0270.04714.06
5.3.50.0300.04014.00
5.3.40.0300.04014.16
5.3.30.0170.04713.95
5.3.20.0200.04313.73
5.3.10.0130.05013.75
5.3.00.0170.05013.65
5.2.170.0230.03011.26
5.2.160.0200.04011.24
5.2.150.0170.04011.27
5.2.140.0070.05011.36
5.2.130.0130.04011.08
5.2.120.0130.04011.30
5.2.110.0100.05711.11
5.2.100.0270.04011.15
5.2.90.0100.05711.23
5.2.80.0230.03711.15
5.2.70.0200.05711.19
5.2.60.0100.04711.16
5.2.50.0170.04011.05
5.2.40.0070.04311.01
5.2.30.0130.04011.00
5.2.20.0100.04011.00
5.2.10.0200.03011.05
5.2.00.0030.04710.71
5.1.60.0170.03010.06
5.1.50.0070.04010.03
5.1.40.0170.02710.11
5.1.30.0130.04010.46
5.1.20.0070.04010.45
5.1.10.0270.02310.20
5.1.00.0230.03710.14
5.0.50.0070.0308.68
5.0.40.0030.0308.55
5.0.30.0070.0438.32
5.0.20.0070.0278.38
5.0.10.0070.0278.28
5.0.00.0070.0438.29
4.4.90.0000.0306.77
4.4.80.0070.0206.77
4.4.70.0100.0176.77
4.4.60.0070.0336.77
4.4.50.0170.0106.77
4.4.40.0070.0336.77
4.4.30.0030.0236.77
4.4.20.0030.0336.77
4.4.10.0100.0176.77
4.4.00.0070.0336.77
4.3.110.0070.0236.77
4.3.100.0070.0206.77
4.3.90.0100.0276.77
4.3.80.0100.0436.77
4.3.70.0030.0336.77
4.3.60.0070.0206.77
4.3.50.0130.0176.77
4.3.40.0100.0306.77
4.3.30.0000.0276.77
4.3.20.0030.0236.77
4.3.10.0000.0276.77
4.3.00.0200.0176.83

preferences:
53.14 ms | 400 KiB | 5 Q