3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call(callable $foo) { echo $foo(); } class Foo { public function bar() { call(array($this, 'baz' )); } private function baz() { return 'foo' ; } } $obj = new Foo; $obj->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.60.0110.00716.50
8.3.50.0080.00818.31
8.3.40.0120.00318.82
8.3.30.0060.01220.61
8.3.20.0050.00318.65
8.3.10.0060.00318.66
8.3.00.0040.00419.24
8.2.180.0110.00725.92
8.2.170.0120.00318.86
8.2.160.0030.01022.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.60
8.2.110.0030.00619.19
8.2.100.0090.00317.91
8.2.90.0090.00017.63
8.2.80.0050.00318.76
8.2.70.0040.00417.75
8.2.60.0050.00317.63
8.2.50.0000.00817.63
8.2.40.0030.00617.62
8.2.30.0000.00817.85
8.2.20.0070.00417.75
8.2.10.0050.00317.67
8.2.00.0040.00417.59
8.1.280.0080.01225.92
8.1.270.0070.00723.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00819.13
8.1.230.0040.00720.91
8.1.220.0040.00418.39
8.1.210.0040.00418.77
8.1.200.0060.00317.63
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0050.00318.55
8.1.150.0040.00418.60
8.1.140.0040.00417.45
8.1.130.0030.00519.15
8.1.120.0000.00817.44
8.1.110.0040.00417.31
8.1.100.0000.00717.34
8.1.90.0040.00417.37
8.1.80.0000.00817.42
8.1.70.0000.00717.38
8.1.60.0090.00317.59
8.1.50.0040.00717.43
8.1.40.0070.00317.45
8.1.30.0030.00717.57
8.1.20.0040.00417.61
8.1.10.0020.00517.55
8.1.00.0030.00517.56
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0050.00517.99
8.0.270.0000.00817.24
8.0.260.0000.00618.43
8.0.250.0000.00717.02
8.0.240.0000.00716.89
8.0.230.0060.00317.03
8.0.220.0080.00016.94
8.0.210.0030.00316.95
8.0.200.0030.00317.04
8.0.190.0000.00717.00
8.0.180.0100.00016.91
8.0.170.0060.00317.00
8.0.160.0000.00716.96
8.0.150.0060.00316.84
8.0.140.0070.00316.91
8.0.130.0000.00613.31
8.0.120.0000.00816.72
8.0.110.0000.00817.02
8.0.100.0040.00417.01
8.0.90.0040.00416.90
8.0.80.0130.00316.93
8.0.70.0040.00416.78
8.0.60.0080.00016.93
8.0.50.0050.00216.72
8.0.30.0120.00617.14
8.0.20.0130.00617.01
8.0.10.0050.00317.06
8.0.00.0080.01116.80
7.4.330.0060.00013.00
7.4.320.0060.00016.47
7.4.300.0040.00416.55
7.4.290.0030.00316.39
7.4.280.0070.00416.38
7.4.270.0030.00316.52
7.4.260.0000.00513.21
7.4.250.0040.00416.58
7.4.240.0070.00016.52
7.4.230.0030.00616.42
7.4.220.0060.01216.58
7.4.210.0000.01516.65
7.4.200.0040.00416.48
7.4.190.0030.00316.63
7.4.160.0090.00616.67
7.4.150.0150.00416.44
7.4.140.0150.00917.86
7.4.130.0030.01416.50
7.4.120.0150.00416.45
7.4.110.0090.00916.64
7.4.100.0080.00816.55
7.4.90.0090.00916.57
7.4.80.0150.00919.39
7.4.70.0110.00616.49
7.4.60.0060.01116.65
7.4.50.0000.00616.29
7.4.40.0030.01316.54
7.4.30.0100.00716.48
7.4.00.0090.00614.77
7.3.330.0030.00313.22
7.3.320.0000.00513.36
7.3.310.0040.00416.36
7.3.300.0000.00716.38
7.3.290.0090.00716.33
7.3.280.0060.01516.26
7.3.270.0140.00616.17
7.3.260.0070.01016.39
7.3.240.0090.00616.27
7.3.230.0140.00416.22
7.3.210.0060.01216.22
7.3.200.0100.01416.48
7.3.190.0090.00616.64
7.3.180.0100.00716.59
7.3.170.0120.01016.40
7.3.160.0080.00816.53
7.3.120.0070.01114.94
7.2.330.0080.01116.44
7.2.320.0120.01216.61
7.2.310.0140.00316.36
7.2.300.0090.01416.32
7.2.290.0100.00716.34
7.2.60.0040.00816.90
7.1.200.0040.00815.55
7.1.100.0420.00715.70
7.1.70.0030.01017.26
7.1.60.0060.01819.21
7.1.50.0110.01116.91
7.1.00.0000.06022.29
7.0.200.0000.00816.79
7.0.140.0000.07322.22
7.0.120.0000.07022.25
7.0.60.0000.06319.89
7.0.50.0100.08017.88
7.0.40.0100.07717.80
7.0.30.0100.07317.79
7.0.20.0170.07017.75
7.0.10.0100.04317.75
7.0.00.0100.04017.75
5.6.280.0030.07021.02
5.6.210.0130.07720.55
5.6.200.0130.03318.15
5.6.190.0100.07318.12
5.6.180.0000.06318.29
5.6.170.0100.08318.19
5.6.160.0030.07018.23
5.6.150.0170.06718.28
5.6.140.0030.08318.18
5.6.130.0070.07718.15
5.6.120.0100.07718.18
5.6.110.0070.08018.22
5.6.100.0030.07018.16
5.6.90.0100.07718.21
5.6.80.0030.05017.63
5.6.70.0030.07017.60
5.6.60.0070.08017.59
5.6.50.0000.05017.57
5.6.40.0030.05317.54
5.6.30.0070.05717.54
5.6.20.0070.08317.53
5.6.10.0030.08317.51
5.6.00.0200.06717.54
5.5.350.0330.06720.34
5.5.340.0030.04318.08
5.5.330.0100.07718.05
5.5.320.0070.06318.07
5.5.310.0030.04317.95
5.5.300.0000.05718.01
5.5.290.0030.05318.09
5.5.280.0170.05018.02
5.5.270.0130.08017.98
5.5.260.0130.07317.95
5.5.250.0100.07717.80
5.5.240.0070.07717.37
5.5.230.0130.07717.47
5.5.220.0100.07317.40
5.5.210.0070.06717.34
5.5.200.0130.06717.43
5.5.190.0070.08317.31
5.5.180.0100.07017.30
5.5.160.0070.06717.44
5.5.150.0030.06017.29
5.5.140.0100.07717.33
5.5.130.0100.07017.42
5.5.120.0070.03717.34
5.5.110.0070.06717.33
5.5.100.0030.07717.32
5.5.90.0130.02717.29
5.5.80.0230.03017.16
5.5.70.0000.05017.19
5.5.60.0070.03717.20
5.5.50.0100.07317.32
5.5.40.0070.05717.25
5.5.30.0030.07317.31
5.5.20.0170.03717.20
5.5.10.0070.03717.19
5.5.00.0100.07317.30
5.4.450.0200.06719.22
5.4.440.0130.04719.38
5.4.430.0130.07319.43
5.4.420.0100.07719.59
5.4.410.0100.06319.24
5.4.400.0070.05019.12
5.4.390.0070.06719.13
5.4.380.0100.07319.09
5.4.370.0130.07319.02
5.4.360.0070.06719.03
5.4.350.0030.06319.05
5.4.340.0030.08019.07
5.4.320.0070.08018.88
5.4.310.0070.07319.02
5.4.300.0070.05319.27
5.4.290.0000.04719.09
5.4.280.0070.07019.18
5.4.270.0070.03719.13
5.4.260.0000.08319.02
5.4.250.0100.04718.88
5.4.240.0130.07019.13
5.4.230.0170.06719.00
5.4.220.0030.08019.12
5.4.210.0000.08319.00
5.4.200.0000.08318.87
5.4.190.0030.05319.00
5.4.180.0030.05319.05
5.4.170.0070.05719.04
5.4.160.0070.04019.25
5.4.150.0070.04019.07
5.4.140.0100.05016.46
5.4.130.0030.05716.33
5.4.120.0030.04316.62
5.4.110.0100.04716.45
5.4.100.0100.07016.50
5.4.90.0000.05716.52
5.4.80.0100.03316.49
5.4.70.0070.06716.44
5.4.60.0070.07316.56
5.4.50.0030.07316.56
5.4.40.0130.04016.33
5.4.30.0070.07016.44
5.4.20.0030.07716.38
5.4.10.0070.07716.45
5.4.00.0000.07715.98
5.3.290.0200.06314.69
5.3.280.0130.06714.70
5.3.270.0000.04314.67
5.3.260.0100.03714.65
5.3.250.0030.04714.68
5.3.240.0070.07014.59
5.3.230.0000.05014.70
5.3.220.0030.04314.64
5.3.210.0000.06014.42
5.3.200.0130.07714.52
5.3.190.0100.07714.58
5.3.180.0030.06014.55
5.3.170.0100.06014.53
5.3.160.0030.06714.60
5.3.150.0070.05014.41
5.3.140.0070.07714.55
5.3.130.0030.08014.60
5.3.120.0070.07314.50
5.3.110.0100.06314.63
5.3.100.0030.07714.06
5.3.90.0130.07013.86
5.3.80.0130.07014.08
5.3.70.0100.05014.11
5.3.60.0100.07014.01
5.3.50.0000.04714.05
5.3.40.0100.07714.00
5.3.30.0070.05313.91
5.3.20.0030.07713.72
5.3.10.0030.04013.75
5.3.00.0070.07013.52
5.2.170.0130.03011.13
5.2.160.0070.06311.20
5.2.150.0030.07011.16
5.2.140.0070.04710.99
5.2.130.0070.06311.11
5.2.120.0070.03311.14
5.2.110.0030.05011.15
5.2.100.0070.06311.17
5.2.90.0100.05711.10
5.2.80.0100.05711.16
5.2.70.0030.06711.11
5.2.60.0030.06711.26
5.2.50.0030.05011.04
5.2.40.0070.03011.06
5.2.30.0100.02711.00
5.2.20.0030.02710.86
5.2.10.0000.03010.84
5.2.00.0030.02710.76
5.1.60.0070.02010.00
5.1.50.0070.02010.04
5.1.40.0000.02710.01
5.1.30.0030.03010.18
5.1.20.0000.02710.17
5.1.10.0030.02310.12
5.1.00.0070.02010.05
5.0.50.0000.0208.52
5.0.40.0030.0178.61
5.0.30.0000.0308.31
5.0.20.0030.0178.26
5.0.10.0000.0208.11
5.0.00.0030.0278.21
4.4.90.0000.0238.05
4.4.80.0130.0278.05
4.4.70.0070.0108.05
4.4.60.0000.0178.05
4.4.50.0000.0178.05
4.4.40.0030.0278.05
4.4.30.0000.0178.05
4.4.20.0070.0108.05
4.4.10.0000.0238.05
4.4.00.0000.0238.05
4.3.110.0030.0108.05
4.3.100.0000.0138.05
4.3.90.0030.0138.05
4.3.80.0000.0238.05
4.3.70.0000.0138.05
4.3.60.0000.0138.05
4.3.50.0030.0138.05
4.3.40.0000.0238.05
4.3.30.0000.0138.05
4.3.20.0000.0138.05
4.3.10.0000.0138.05
4.3.00.0000.0138.05

preferences:
46.55 ms | 401 KiB | 5 Q