3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call(callable $foo) { echo call_user_func($foo); } class Foo { public function bar() { call(array($this, 'baz')); } public function baz() { return 'foo' ; } } $foo = new Foo(); $foo->bar();

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.0090.01218.75
8.3.30.0040.01218.71
8.3.20.0050.00318.96
8.3.10.0000.00819.21
8.3.00.0040.00423.45
8.2.170.0110.00722.96
8.2.160.0080.00620.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00721.04
8.2.110.0000.00922.20
8.2.100.0060.00620.36
8.2.90.0040.00420.06
8.2.80.0050.00318.05
8.2.70.0000.00818.04
8.2.60.0000.00717.93
8.2.50.0050.00318.10
8.2.40.0000.00718.22
8.2.30.0000.00819.96
8.2.20.0000.00717.64
8.2.10.0050.00217.67
8.2.00.0040.00417.65
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0100.01023.96
8.1.230.0090.00319.09
8.1.220.0070.00217.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0040.00418.79
8.1.150.0070.00018.53
8.1.140.0050.00317.35
8.1.130.0040.00417.72
8.1.120.0030.00317.39
8.1.110.0040.00417.35
8.1.100.0000.00717.48
8.1.90.0030.00517.32
8.1.80.0000.00717.34
8.1.70.0000.00717.40
8.1.60.0090.00317.62
8.1.50.0040.00417.36
8.1.40.0090.00017.42
8.1.30.0000.00717.56
8.1.20.0000.00817.57
8.1.10.0040.00417.47
8.1.00.0050.00517.36
8.0.300.0070.00319.63
8.0.290.0030.00616.75
8.0.280.0040.00418.50
8.0.270.0070.00017.29
8.0.260.0070.00016.75
8.0.250.0070.00017.02
8.0.240.0030.00617.02
8.0.230.0030.00317.02
8.0.220.0000.00716.93
8.0.210.0030.00316.85
8.0.200.0070.00016.93
8.0.190.0000.00716.97
8.0.180.0040.00417.01
8.0.170.0050.00316.80
8.0.160.0000.00717.00
8.0.150.0070.00316.99
8.0.140.0060.00316.89
8.0.130.0050.00013.42
8.0.120.0040.00416.93
8.0.110.0030.00516.83
8.0.100.0040.00416.80
8.0.90.0000.00716.84
8.0.80.0090.00917.00
8.0.70.0000.00716.82
8.0.60.0000.00817.01
8.0.50.0070.00016.80
8.0.30.0100.01017.16
8.0.20.0090.01417.40
8.0.10.0070.00016.95
8.0.00.0110.00616.94
7.4.330.0030.00314.81
7.4.320.0000.00616.50
7.4.300.0000.00616.41
7.4.290.0040.00416.50
7.4.280.0080.00016.41
7.4.270.0050.00316.48
7.4.260.0000.00513.26
7.4.250.0040.00416.56
7.4.240.0030.00316.64
7.4.230.0030.00316.59
7.4.220.0160.00616.51
7.4.210.0090.00916.51
7.4.200.0040.00416.60
7.4.190.0070.00016.40
7.4.160.0170.00416.48
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0030.01216.44
7.4.120.0160.00416.44
7.4.110.0100.00716.48
7.4.100.0130.00316.35
7.4.90.0060.01216.50
7.4.80.0090.00919.37
7.4.70.0130.00316.47
7.4.60.0120.00416.52
7.4.50.0040.00416.28
7.4.40.0030.01422.27
7.4.30.0060.01016.63
7.4.00.0060.01015.22
7.3.330.0000.00513.33
7.3.320.0030.00313.14
7.3.310.0070.00016.21
7.3.300.0030.00316.30
7.3.290.0140.00016.27
7.3.280.0040.01216.31
7.3.270.0170.00717.40
7.3.260.0050.01418.24
7.3.250.0150.00616.43
7.3.240.0100.00616.25
7.3.230.0070.01016.54
7.3.210.0100.00616.61
7.3.200.0130.01019.39
7.3.190.0070.01416.46
7.3.180.0100.00616.45
7.3.170.0060.00916.29
7.3.160.0110.01116.36
7.3.120.0070.01014.80
7.3.10.0140.00016.70
7.3.00.0040.01116.50
7.2.330.0150.00316.30
7.2.320.0130.01016.44
7.2.310.0070.01116.72
7.2.300.0080.00816.66
7.2.290.0050.01016.67
7.2.130.0100.00716.84
7.2.120.0090.00616.98
7.2.110.0040.00816.91
7.2.100.0030.01416.77
7.2.90.0100.00017.13
7.2.80.0050.00516.76
7.2.70.0060.00616.75
7.2.60.0060.00816.93
7.2.50.0080.00416.88
7.2.40.0080.00817.06
7.2.30.0090.00617.05
7.2.20.0040.00716.88
7.2.10.0030.00717.00
7.2.00.0080.00718.02
7.1.250.0060.00315.51
7.1.100.0220.01115.30
7.1.70.0040.00417.13
7.1.60.0030.01919.40
7.1.50.0090.01516.86
7.1.00.0000.05022.51
7.0.200.0240.00714.69
7.0.140.0000.07721.97
7.0.60.0100.07719.91
7.0.50.0170.04017.83
7.0.40.0100.07020.30
7.0.30.0330.08320.24
7.0.20.0230.04020.23
7.0.10.0070.09320.16
7.0.00.0130.08320.25
5.6.280.0070.07021.10
5.6.210.0100.08020.75
5.6.200.0000.04318.17
5.6.190.0100.05020.61
5.6.180.0330.04320.67
5.6.170.0370.05020.48
5.6.160.0100.08320.50
5.6.150.0000.05018.15
5.6.140.0070.07718.18
5.6.130.0000.04718.11
5.6.120.0070.08721.02
5.6.110.0070.08020.89
5.6.100.0070.08720.98
5.6.90.0070.05320.97
5.6.80.0070.06720.29
5.5.350.4000.04320.47
5.5.340.0000.06018.03
5.5.330.0000.07720.21
5.5.320.0370.04020.33
5.5.310.0200.05020.27
5.5.300.0000.07017.97
5.5.290.0130.05717.97
5.5.280.0030.04720.98
5.5.270.0200.07320.88
5.5.260.0130.07720.96
5.5.250.0030.08020.68
5.5.240.0230.07720.12
5.4.450.0400.05019.49
5.4.440.0330.03319.49
5.4.430.0200.05319.52
5.4.420.0100.04719.50
5.4.410.0170.04019.27
5.4.400.0170.03719.13
5.4.390.0200.03718.86
5.4.380.0200.03318.84
5.4.370.0230.03318.87
5.4.360.0170.03718.98
5.4.350.0270.03719.11
5.4.340.0170.03719.14
5.4.320.0200.04719.15
5.4.310.0270.03719.31
5.4.300.0170.03719.21
5.4.290.0270.04018.83
5.4.280.0230.03319.11
5.4.270.0200.03719.30
5.4.260.0130.04019.18
5.4.250.0200.03318.86
5.4.240.0170.04019.11
5.4.230.0170.03719.15
5.4.220.0200.03719.16
5.4.210.0200.03319.08
5.4.200.0270.05018.80
5.4.190.0200.03319.07
5.4.180.0130.04319.18
5.4.170.0270.02719.05
5.4.160.0230.03319.04
5.4.150.0170.04019.29
5.4.140.0100.04016.44
5.4.130.0230.03016.44
5.4.120.0270.03016.38
5.4.110.0170.03716.33
5.4.100.0230.03016.50
5.4.90.0170.03716.60
5.4.80.0170.03716.25
5.4.70.0270.03716.43
5.4.60.0130.03716.51
5.4.50.0170.03716.43
5.4.40.0170.03316.51
5.4.30.0130.03716.42
5.4.20.0170.03716.42
5.4.10.0300.03716.22
5.4.00.0170.03716.21
5.3.290.0200.03716.21
5.3.280.0300.02316.21
5.3.270.0130.04716.21
5.3.260.0130.04016.21
5.3.250.0230.03016.21
5.3.240.0200.03316.21
5.3.230.0200.03716.21
5.3.220.0170.03716.21
5.3.210.0200.03716.21
5.3.200.0130.04016.21
5.3.190.0170.03716.21
5.3.180.0270.03016.21
5.3.170.0130.04016.21
5.3.160.0270.02716.21
5.3.150.0200.03716.21
5.3.140.0170.03716.21
5.3.130.0130.04316.21
5.3.120.0230.03316.21
5.3.110.0200.03316.21
5.3.100.0170.04016.21
5.3.90.0130.04016.21
5.3.80.0100.04316.21
5.3.70.0200.03316.21
5.3.60.0100.04316.21
5.3.50.0200.03316.21
5.3.40.0130.04016.21
5.3.30.0230.03016.21
5.3.20.0230.02716.21
5.3.10.0170.03316.21
5.3.00.0230.03716.21
5.2.170.0170.02716.21
5.2.160.0130.03016.21
5.2.150.0130.03716.21
5.2.140.0130.03016.21
5.2.130.0170.03016.21
5.2.120.0130.03016.21
5.2.110.0130.03016.21
5.2.100.0030.04016.21
5.2.90.0170.02716.21
5.2.80.0200.04716.21
5.2.70.0130.03016.21
5.2.60.0230.02016.21
5.2.50.0170.02716.21
5.2.40.0130.02716.21
5.2.30.0070.03316.21
5.2.20.0130.02716.21
5.2.10.0130.02316.21
5.2.00.0130.02716.21
5.1.60.0070.03016.21
5.1.50.0100.02716.21
5.1.40.0130.02016.21
5.1.30.0200.02316.21
5.1.20.0170.02016.21
5.1.10.0200.01716.21
5.1.00.0200.04716.21
5.0.50.0070.02316.21
5.0.40.0030.02016.21
5.0.30.0100.02716.21
5.0.20.0100.02016.21
5.0.10.0100.01316.21
5.0.00.0070.03016.21
4.4.90.0030.01716.21
4.4.80.0070.01316.21
4.4.70.0100.01716.21
4.4.60.0030.02016.21
4.4.50.0100.01716.21
4.4.40.0070.02316.21
4.4.30.0070.01316.21
4.4.20.0030.01716.21
4.4.10.0030.01716.21
4.4.00.0070.03016.21
4.3.110.0130.01016.21
4.3.100.0070.01316.21
4.3.90.0030.01716.21
4.3.80.0070.03016.21
4.3.70.0100.00716.21
4.3.60.0100.01016.21
4.3.50.0030.01716.21
4.3.40.0070.03016.21
4.3.30.0000.01716.21
4.3.20.0070.01316.21
4.3.10.0000.02316.21
4.3.00.0070.01316.21

preferences:
50.81 ms | 400 KiB | 5 Q