3v4l.org

run code in 300+ PHP versions simultaneously
<?hh interface Foo { public function foo(String $foo) : String; } class TestClass { } class Bar implements Foo { public function foo(String $foo) { return new TestClass; } } $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.70.0110.00416.38
8.3.60.0090.00616.63
8.3.50.0110.00922.05
8.3.40.0110.00418.81
8.3.30.0110.00418.84
8.3.20.0040.00420.16
8.3.10.0080.00023.53
8.3.00.0000.00819.13
8.2.180.0090.00618.04
8.2.170.0120.00322.96
8.2.160.0000.01420.39
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00219.64
8.2.110.0090.00022.18
8.2.100.0040.00817.78
8.2.90.0040.00417.84
8.2.80.0030.00617.97
8.2.70.0070.00416.85
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0040.00418.09
8.2.30.0000.00717.98
8.2.20.0000.00817.59
8.2.10.0070.00017.91
8.2.00.0070.00317.59
8.1.280.0120.00325.92
8.1.270.0080.00024.00
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00722.42
8.1.230.0070.00321.03
8.1.220.0030.00617.74
8.1.210.0080.00018.82
8.1.200.0030.00617.10
8.1.190.0000.00717.30
8.1.180.0050.00518.88
8.1.170.0030.00618.45
8.1.160.0000.00721.93
8.1.150.0000.00718.52
8.1.140.0070.00017.36
8.1.130.0050.00317.75
8.1.120.0030.00417.28
8.1.110.0080.00017.21
8.1.100.0070.00317.28
8.1.90.0050.00217.35
8.1.80.0030.00317.32
8.1.70.0000.00717.21
8.1.60.0060.00317.47
8.1.50.0080.00017.39
8.1.40.0050.00217.39
8.1.30.0030.00617.35
8.1.20.0000.00817.48
8.1.10.0040.00417.43
8.1.00.0040.00417.39
8.0.300.0000.00819.89
8.0.290.0040.00417.16
8.0.280.0030.00318.23
8.0.270.0000.00717.18
8.0.260.0000.00717.22
8.0.250.0000.00616.80
8.0.240.0040.00416.84
8.0.230.0000.00716.71
8.0.220.0000.00716.71
8.0.210.0000.00716.66
8.0.200.0000.00716.81
8.0.190.0080.00016.82
8.0.180.0040.00416.66
8.0.170.0040.00416.67
8.0.160.0070.00016.80
8.0.150.0080.00016.82
8.0.140.0000.00716.69
8.0.130.0080.00013.48
8.0.120.0040.00416.62
8.0.110.0040.00416.64
8.0.100.0050.00316.79
8.0.90.0030.00516.59
8.0.80.0120.01216.74
8.0.70.0030.00516.64
8.0.60.0020.00516.81
8.0.50.0050.00316.68
8.0.30.0060.01417.15
8.0.20.0100.01017.40
8.0.10.0070.00016.84
8.0.00.0120.00916.70
7.4.330.0000.00715.00
7.4.320.0000.00616.51
7.4.300.0070.00316.37
7.4.290.0000.00716.38
7.4.280.0020.00516.37
7.4.270.0000.00816.50
7.4.260.0030.00316.44
7.4.250.0000.00816.47
7.4.240.0000.00716.38
7.4.230.0030.00316.57
7.4.220.0070.01016.52
7.4.210.0090.01016.40
7.4.200.0000.00716.21
7.4.190.0030.00316.58
7.4.160.0080.00816.30
7.4.150.0090.01017.40
7.4.140.0110.00617.86
7.4.130.0090.00816.37
7.4.120.0140.00416.41
7.4.110.0040.01416.40
7.4.100.0120.00616.44
7.4.90.0160.00616.35
7.4.80.0100.01019.39
7.4.70.0080.00816.30
7.4.60.0100.00716.31
7.4.50.0000.00416.08
7.4.40.0070.00722.77
7.4.30.0120.00616.40
7.3.330.0060.00013.11
7.3.320.0000.00513.21
7.3.310.0050.00216.05
7.3.300.0030.00416.13
7.3.290.0130.00616.18
7.3.280.0060.01016.14
7.3.270.0100.00717.40
7.3.260.0070.01016.34
7.3.250.0050.01216.32
7.3.240.0110.01116.42
7.3.230.0100.00716.39
7.3.210.0110.00516.53
7.3.200.0170.00719.39
7.3.190.0090.00916.26
7.3.180.0040.01216.34
7.3.170.0060.00916.27
7.3.160.0080.00816.23
7.2.330.0060.01216.35
7.2.320.0130.00416.22
7.2.310.0180.00316.66
7.2.300.0130.01016.59
7.2.290.0100.00716.60
5.4.320.0110.03512.45
5.4.310.0080.04012.45
5.4.300.0060.04412.46
5.4.290.0070.04112.45
5.4.280.0120.07412.32
5.4.270.0140.09012.32
5.4.260.0100.06612.32
5.4.250.0120.07712.32
5.4.240.0070.06312.32
5.4.230.0060.06012.31
5.4.220.0170.08112.31
5.4.210.0170.06012.31
5.4.200.0120.06412.31
5.4.190.0160.05912.31
5.4.180.0090.06012.31
5.4.170.0150.04712.32
5.4.160.0290.09012.31
5.4.150.0130.07112.31
5.4.140.0400.10412.00
5.4.130.0250.08211.98
5.4.120.0230.12311.94
5.4.110.0180.04611.94
5.4.100.0180.08511.93
5.4.90.0140.04911.94
5.4.80.0150.05811.94
5.4.70.0130.06011.93
5.4.60.0090.04711.93
5.4.50.0110.03711.93
5.4.40.0130.05511.92
5.4.30.0160.06211.92
5.4.20.0170.07411.92
5.4.10.0150.05411.92
5.4.00.0080.04411.41
5.3.290.0080.04412.80
5.3.280.0130.04612.71
5.3.270.0100.07612.72
5.3.260.0120.06412.72
5.3.250.0190.07812.72
5.3.240.0090.04012.71
5.3.230.0110.03912.70
5.3.220.0110.06412.68
5.3.210.0080.04312.68
5.3.200.0090.03912.68
5.3.190.0090.04112.68
5.3.180.0110.04212.67
5.3.170.0170.05412.67
5.3.160.0130.03712.67
5.3.150.0170.06212.68
5.3.140.0120.05312.66
5.3.130.0120.06312.65
5.3.120.0130.08312.66
5.3.110.0100.07212.66
5.3.100.0090.05212.12
5.3.90.0120.04712.08
5.3.80.0100.05312.08
5.3.70.0110.04812.07
5.3.60.0190.05712.06
5.3.50.0130.05412.00
5.3.40.0070.04712.00
5.3.30.0160.06111.93
5.3.20.0140.05511.70
5.3.10.0140.06811.66
5.3.00.0150.07511.65

preferences:
39.43 ms | 401 KiB | 5 Q