3v4l.org

run code in 300+ PHP versions simultaneously
<?hh //strict interface Foo { public function foo(String $foo) : String; } class TestClass { } class Bar implements Foo { public function foo(String $foo) { return 45; } } $b = new Bar; var_dump($b->foo("test"));

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.0090.00616.13
8.3.50.0130.00322.05
8.3.40.0060.00918.77
8.3.30.0110.00319.02
8.3.20.0070.00020.22
8.3.10.0030.00523.66
8.3.00.0050.00319.26
8.2.180.0120.00418.29
8.2.170.0090.00622.96
8.2.160.0140.00020.39
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0140.00326.16
8.2.120.0020.00522.24
8.2.110.0030.00722.11
8.2.100.0070.00417.66
8.2.90.0060.00317.78
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00418.23
8.2.30.0000.00817.80
8.2.20.0080.00017.59
8.2.10.0000.00917.98
8.2.00.0080.00317.50
8.1.280.0070.01025.92
8.1.270.0080.00023.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.01622.42
8.1.230.0070.00420.97
8.1.220.0050.00317.74
8.1.210.0040.00418.91
8.1.200.0050.00317.23
8.1.190.0030.00617.30
8.1.180.0060.00318.88
8.1.170.0040.00418.57
8.1.160.0000.00821.93
8.1.150.0040.00418.54
8.1.140.0070.00017.35
8.1.130.0000.00717.76
8.1.120.0000.00717.36
8.1.110.0000.00717.29
8.1.100.0000.00717.27
8.1.90.0030.00317.30
8.1.80.0000.00717.21
8.1.70.0000.00717.30
8.1.60.0080.00417.38
8.1.50.0080.00017.33
8.1.40.0030.00717.42
8.1.30.0000.00817.37
8.1.20.0000.00817.48
8.1.10.0000.00817.39
8.1.00.0040.00417.43
8.0.300.0070.00019.93
8.0.290.0070.00016.93
8.0.280.0030.00318.27
8.0.270.0030.00317.08
8.0.260.0000.00817.21
8.0.250.0030.00316.75
8.0.240.0050.00216.81
8.0.230.0000.00716.75
8.0.220.0000.00716.65
8.0.210.0030.00316.66
8.0.200.0060.00016.85
8.0.190.0080.00016.77
8.0.180.0070.00016.78
8.0.170.0000.00716.64
8.0.160.0050.00216.66
8.0.150.0050.00216.71
8.0.140.0070.00016.60
8.0.130.0000.00613.32
8.0.120.0000.00716.68
8.0.110.0050.00216.57
8.0.100.0040.00416.64
8.0.90.0040.00416.65
8.0.80.0090.00616.70
8.0.70.0000.00716.83
8.0.60.0040.00416.77
8.0.50.0000.00816.86
8.0.30.0120.00716.88
8.0.20.0070.01517.40
8.0.10.0000.00816.83
8.0.00.0100.01116.50
7.4.330.0000.00615.00
7.4.320.0000.00616.38
7.4.300.0040.00416.46
7.4.290.0000.00716.38
7.4.280.0030.00616.37
7.4.270.0030.00316.38
7.4.260.0070.00016.41
7.4.250.0000.00716.32
7.4.240.0030.00316.40
7.4.230.0030.00316.53
7.4.220.0100.00716.40
7.4.210.0070.00716.45
7.4.200.0070.00016.39
7.4.190.0030.00316.52
7.4.160.0120.00316.29
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0020.01516.35
7.4.120.0110.00716.34
7.4.110.0100.00616.39
7.4.100.0120.00616.35
7.4.90.0120.00916.30
7.4.80.0120.00619.39
7.4.70.0060.01016.28
7.4.60.0100.00716.20
7.4.50.0000.00416.55
7.4.40.0060.01022.77
7.4.30.0100.01016.44
7.3.330.0000.00513.01
7.3.320.0060.00013.13
7.3.310.0000.00716.12
7.3.300.0040.00315.98
7.3.290.0150.00616.07
7.3.280.0060.01116.13
7.3.270.0090.00917.40
7.3.260.0130.00316.15
7.3.250.0110.00816.50
7.3.240.0030.01516.37
7.3.230.0150.00716.39
7.3.210.0140.00316.42
7.3.200.0060.01119.39
7.3.190.0030.01416.36
7.3.180.0090.00616.16
7.3.170.0030.01216.43
7.3.160.0100.00716.32
7.2.330.0170.00016.35
7.2.320.0030.01316.21
7.2.310.0060.01216.54
7.2.300.0060.01516.36
7.2.290.0100.00716.38
5.4.320.0070.03912.45
5.4.310.0050.03812.45
5.4.300.0040.04312.45
5.4.290.0060.03812.45
5.4.280.0220.03812.32
5.4.270.0110.03812.32
5.4.260.0080.05712.32
5.4.250.0120.05012.32
5.4.240.0130.07712.32
5.4.230.0080.07412.31
5.4.220.0090.05112.31
5.4.210.0150.07712.31
5.4.200.0200.06312.31
5.4.190.0130.06212.31
5.4.180.0100.06512.31
5.4.170.0210.07512.32
5.4.160.0100.05612.32
5.4.150.0260.09412.31
5.4.140.0120.04512.00
5.4.130.0110.04211.98
5.4.120.0090.04411.94
5.4.110.0070.04711.93
5.4.100.0170.06711.94
5.4.90.0090.05911.94
5.4.80.0070.05811.94
5.4.70.0210.06411.93
5.4.60.0100.04611.93
5.4.50.0150.05411.93
5.4.40.0280.06411.93
5.4.30.0290.08011.92
5.4.20.0180.08311.92
5.4.10.0140.04611.92
5.4.00.0080.05011.41
5.3.290.0060.04012.80
5.3.280.0100.05612.71
5.3.270.0090.05612.72
5.3.260.0070.05612.72
5.3.250.0170.09212.72
5.3.240.0340.13912.72
5.3.230.0070.09012.71
5.3.220.0120.05212.68
5.3.210.0190.10212.68
5.3.200.0270.08312.68
5.3.190.0100.05312.68
5.3.180.0110.06612.67
5.3.170.0190.11312.67
5.3.160.0090.05412.67
5.3.150.0150.08212.67
5.3.140.0290.14112.66
5.3.130.0210.10812.66
5.3.120.0120.10512.66
5.3.110.0070.07612.66
5.3.100.0100.06012.12
5.3.90.0170.09512.08
5.3.80.0130.07412.07
5.3.70.0240.09712.08
5.3.60.0090.05612.06
5.3.50.0160.07112.00
5.3.40.0100.05112.00
5.3.30.0190.07811.93
5.3.20.0160.07411.70
5.3.10.0140.07011.66
5.3.00.0100.06311.65

preferences:
40.78 ms | 401 KiB | 5 Q