3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function testFunc($name) { echo "hello " . $name . ' !!'; } } class B { public function testAnotherFunc(callable $funcName) { $funcName('Percy'); } } $b = new B(); $b->testAnotherFunc(A::testFunc());

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.0030.01516.75
8.3.50.0190.00817.46
8.3.40.0060.01218.92
8.3.30.0100.01018.91
8.3.20.0040.00418.77
8.3.10.0030.00620.50
8.3.00.0000.00819.25
8.2.180.0140.00025.92
8.2.170.0170.00322.96
8.2.160.0070.00721.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.70
8.2.110.0040.00422.22
8.2.100.0120.00017.78
8.2.90.0030.00719.23
8.2.80.0060.00317.80
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0090.00018.09
8.2.30.0030.00517.87
8.2.20.0040.00417.52
8.2.10.0050.00317.66
8.2.00.0070.00317.66
8.1.280.0090.00925.92
8.1.270.0000.00824.66
8.1.260.0180.00026.35
8.1.250.0050.00228.09
8.1.240.0110.00020.70
8.1.230.0040.00720.95
8.1.220.0000.00817.74
8.1.210.0030.00518.79
8.1.200.0040.00417.35
8.1.190.0040.00417.40
8.1.180.0000.00918.10
8.1.170.0040.00418.71
8.1.160.0040.00418.78
8.1.150.0000.00718.57
8.1.140.0070.00017.30
8.1.130.0000.00717.81
8.1.120.0000.00817.42
8.1.110.0000.00817.45
8.1.100.0050.00217.38
8.1.90.0000.00717.45
8.1.80.0050.00217.39
8.1.70.0070.00017.29
8.1.60.0040.00417.54
8.1.50.0030.00617.36
8.1.40.0030.00617.48
8.1.30.0000.00817.57
8.1.20.0030.00717.47
8.1.10.0070.00017.50
8.1.00.0000.00717.49
8.0.300.0000.00720.04
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0070.00017.19
8.0.260.0030.00316.73
8.0.250.0000.00716.88
8.0.240.0040.00416.78
8.0.230.0000.00717.01
8.0.220.0030.00316.82
8.0.210.0030.00316.93
8.0.200.0030.00316.94
8.0.190.0040.00416.91
8.0.180.0000.00716.96
8.0.170.0000.00816.77
8.0.160.0000.00716.93
8.0.150.0000.00816.69
8.0.140.0030.00516.73
8.0.130.0050.00013.35
8.0.120.0070.00016.83
8.0.110.0000.00816.71
8.0.100.0050.00216.70
8.0.90.0000.00716.93
8.0.80.0070.01016.80
8.0.70.0050.00216.88
8.0.60.0030.00516.78
8.0.50.0040.00416.80
8.0.30.0060.01617.27
8.0.20.0100.00917.05
8.0.10.0050.00317.02
8.0.00.0100.00916.72
7.4.330.0050.00012.93
7.4.320.0000.00616.44
7.4.300.0000.00616.44
7.4.290.0030.00316.50
7.4.280.0040.00416.61
7.4.270.0070.00016.52
7.4.260.0050.00013.24
7.4.250.0040.00416.45
7.4.240.0000.00716.60
7.4.230.0030.00316.70
7.4.220.0160.01016.52
7.4.210.0050.01016.54
7.4.200.0070.00016.47
7.4.190.0020.00516.44
7.4.160.0060.00916.64
7.4.150.0110.00716.50
7.4.140.0110.00716.49
7.4.130.0080.00816.44
7.4.120.0060.01116.49
7.4.110.0110.01116.43
7.4.100.0100.00716.45
7.4.90.0100.00716.39
7.4.80.0090.00916.57
7.4.70.0130.00316.29
7.4.60.0100.00716.51
7.4.50.0070.00016.32
7.4.40.0110.00716.35
7.4.30.0110.00616.67
7.4.00.0000.01315.12
7.3.330.0060.00013.35
7.3.320.0000.00513.23
7.3.310.0000.00716.39
7.3.300.0000.00716.43
7.3.290.0060.00916.37
7.3.280.0060.01016.34
7.3.270.0100.00716.25
7.3.260.0090.01216.48
7.3.250.0140.00716.53
7.3.240.0110.00616.45
7.3.230.0080.00816.43
7.3.210.0070.01016.43
7.3.200.0100.00719.39
7.3.190.0040.01516.49
7.3.180.0060.00916.36
7.3.170.0070.01016.23
7.3.160.0060.01016.32
7.3.120.0030.01414.64
7.2.330.0070.01016.68
7.2.320.0100.00616.65
7.2.310.0060.01216.63
7.2.300.0070.01016.35
7.2.290.0090.00916.54
7.2.60.0060.00917.00
7.2.00.0040.00719.53
7.1.200.0040.00715.34
7.1.100.0030.01017.83
7.1.70.0000.00917.01
7.1.60.0140.01119.40
7.1.50.0130.00334.15
7.1.00.0070.07322.40
7.0.200.0030.00316.61
7.0.140.0070.07322.09
7.0.120.0030.04722.05
7.0.60.0000.08319.84
7.0.50.0070.08017.84
7.0.40.0130.05317.86
7.0.30.0030.08717.76
7.0.20.0100.08017.75
7.0.10.0070.06017.83
7.0.00.0070.05017.80
5.6.280.0000.07720.99
5.6.210.0070.07320.55
5.6.200.0130.07018.20
5.6.190.0070.08718.16
5.6.180.0000.06318.18
5.6.170.0070.05018.13
5.6.160.0030.08718.19
5.6.150.0100.07718.18
5.6.140.0070.07718.14
5.6.130.0000.07318.27
5.6.120.0130.06018.23
5.6.110.0170.07018.24
5.6.100.0070.08718.27
5.6.90.0100.08018.14
5.6.80.0070.08017.55
5.6.70.0100.07317.56
5.6.60.0030.08017.50
5.6.50.0100.07017.57
5.6.40.0030.05017.59
5.6.30.0100.06017.54
5.6.20.0030.04017.49
5.6.10.0070.04317.57
5.6.00.0030.04017.50
5.5.350.0070.07720.38
5.5.340.0100.04717.98
5.5.330.0030.04717.98
5.5.320.0100.08017.99
5.5.310.0100.07318.07
5.5.300.0030.05017.95
5.5.290.0100.05017.95
5.5.280.0030.08718.02
5.5.270.0070.07717.95
5.5.260.0130.07317.99
5.5.250.0070.04717.75
5.5.240.0030.05317.34
5.5.230.0100.07717.33
5.5.220.0070.06317.30
5.5.210.0070.04017.36
5.5.200.0130.07317.35
5.5.190.0070.08317.38
5.5.180.0070.08017.30
5.5.160.0100.03317.33
5.5.150.0070.06717.34
5.5.140.0130.07017.33
5.5.130.0030.05017.33
5.5.120.0100.07317.30
5.5.110.0070.04017.43
5.5.100.0070.04017.30
5.5.90.0030.06017.20
5.5.80.0000.04317.19
5.5.70.0100.07317.32
5.5.60.0000.08317.22
5.5.50.0100.05717.32
5.5.40.0070.07317.29
5.5.30.0100.07317.33
5.5.20.0030.08017.22
5.5.10.0100.06717.32
5.5.00.0070.07317.18
5.4.450.0070.08019.45
5.4.440.0100.07319.34
5.4.430.0070.07719.59
5.4.420.0070.04719.35
5.4.410.0100.07719.46
5.4.400.0070.06318.98
5.4.390.0070.07719.05
5.4.380.0100.08719.00
5.4.370.0000.04319.09
5.4.360.0070.07718.98
5.4.350.0070.07019.10
5.4.340.0070.04718.98
5.4.320.0070.03718.95
5.4.310.0130.07719.03
5.4.300.0100.07319.04
5.4.290.0130.06319.26
5.4.280.0170.06718.88
5.4.270.0000.07319.12
5.4.260.0130.04719.00
5.4.250.0030.07318.96
5.4.240.0100.07018.96
5.4.230.0130.04718.97
5.4.220.0030.08319.09
5.4.210.0070.07719.02
5.4.200.0100.06319.11
5.4.190.0130.06718.97
5.4.180.0070.04319.00
5.4.170.0030.06018.97
5.4.160.0100.06019.01
5.4.150.0030.04319.02
5.4.140.0030.07316.43
5.4.130.0100.03016.42
5.4.120.0070.07716.33
5.4.110.0070.07316.36
5.4.100.0030.06316.48
5.4.90.0070.03716.37
5.4.80.0030.07716.45
5.4.70.0030.06716.27
5.4.60.0030.07716.41
5.4.50.0100.06016.32
5.4.40.0130.04716.47
5.4.30.0030.04316.35
5.4.20.0000.04016.36
5.4.10.0070.06016.41
5.4.00.0170.06315.86
5.3.290.0030.08014.70
5.3.280.0030.05714.64
5.3.270.0070.07714.57
5.3.260.0030.04014.66
5.3.250.0000.08014.64
5.3.240.0030.08314.57
5.3.230.0030.08314.57
5.3.220.0030.08314.79
5.3.210.0100.06314.60
5.3.200.0000.07014.62
5.3.190.0130.03014.62
5.3.180.0030.07714.59
5.3.170.0070.07714.60
5.3.160.0070.06314.63
5.3.150.0100.07014.61
5.3.140.0030.07314.58
5.3.130.0070.04014.60
5.3.120.0070.03714.57
5.3.110.0000.04014.63
5.3.100.0070.05713.88
5.3.90.0030.05714.01
5.3.80.0030.05314.02
5.3.70.0070.07314.05
5.3.60.0070.04313.89
5.3.50.0030.04313.98
5.3.40.0130.06714.01
5.3.30.0030.05713.93
5.3.20.0070.07713.77
5.3.10.0070.06313.66
5.3.00.0100.06713.69
5.2.170.0070.06311.18
5.2.160.0130.05711.22
5.2.150.0100.04311.20
5.2.140.0100.06011.20
5.2.130.0000.07011.16
5.2.120.0000.07011.11
5.2.110.0030.06311.19
5.2.100.0030.05311.14
5.2.90.0170.02311.07
5.2.80.0100.05711.13
5.2.70.0000.04711.06
5.2.60.0000.05310.90
5.2.50.0070.04011.09
5.2.40.0030.03311.04
5.2.30.0030.02711.00
5.2.20.0070.04710.99
5.2.10.0070.04010.81
5.2.00.0100.05310.71
5.1.60.0030.04710.21
5.1.50.0070.05010.00
5.1.40.0070.05010.07
5.1.30.0070.04310.23
5.1.20.0070.05710.26
5.1.10.0030.03310.29
5.1.00.0000.04710.05
5.0.50.0130.0238.49
5.0.40.0070.0438.41
5.0.30.0030.0538.14
5.0.20.0000.0408.16
5.0.10.0100.0408.16
5.0.00.0030.0538.13
4.4.90.0000.0207.55
4.4.80.0130.0177.55
4.4.70.0000.0177.55
4.4.60.0000.0377.55
4.4.50.0000.0337.55
4.4.40.0070.0477.55
4.4.30.0030.0177.55
4.4.20.0000.0207.55
4.4.10.0030.0377.55
4.4.00.0000.0437.55
4.3.110.0000.0337.55
4.3.100.0030.0277.55
4.3.90.0030.0177.55
4.3.80.0000.0337.55
4.3.70.0070.0237.55
4.3.60.0000.0337.55
4.3.50.0030.0377.55
4.3.40.0070.0537.55
4.3.30.0000.0377.55
4.3.20.0030.0377.55
4.3.10.0000.0377.55
4.3.00.0030.0337.55

preferences:
38.62 ms | 401 KiB | 5 Q