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 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.38
8.3.50.0100.00721.88
8.3.40.0040.01118.54
8.3.30.0140.00018.92
8.3.20.0050.00220.20
8.3.10.0040.00423.54
8.3.00.0040.00419.23
8.2.180.0110.00418.04
8.2.170.0040.01222.96
8.2.160.0040.01120.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0100.00326.16
8.2.120.0090.00022.27
8.2.110.0090.00020.51
8.2.100.0120.00017.66
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00917.54
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0040.00417.80
8.2.20.0000.00717.61
8.2.10.0000.00717.81
8.2.00.0050.00517.60
8.1.280.0070.01125.92
8.1.270.0000.00823.79
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0040.00719.07
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0000.00717.28
8.1.180.0040.00418.10
8.1.170.0060.00318.58
8.1.160.0040.00421.89
8.1.150.0080.00018.40
8.1.140.0040.00417.35
8.1.130.0030.00317.79
8.1.120.0040.00417.36
8.1.110.0020.00517.20
8.1.100.0050.00217.30
8.1.90.0040.00317.29
8.1.80.0040.00417.20
8.1.70.0000.00717.26
8.1.60.0040.00717.32
8.1.50.0030.00617.35
8.1.40.0070.00017.38
8.1.30.0000.00817.50
8.1.20.0050.00217.57
8.1.10.0040.00417.38
8.1.00.0060.00317.34
8.0.300.0000.00718.77
8.0.290.0050.00317.05
8.0.280.0030.00318.29
8.0.270.0030.00317.18
8.0.260.0000.00617.17
8.0.250.0000.00716.67
8.0.240.0040.00416.68
8.0.230.0040.00316.77
8.0.220.0000.00716.76
8.0.210.0000.00716.73
8.0.200.0030.00316.86
8.0.190.0040.00416.70
8.0.180.0000.00716.78
8.0.170.0000.00716.67
8.0.160.0080.00016.62
8.0.150.0000.00716.71
8.0.140.0030.00316.60
8.0.130.0000.00713.31
8.0.120.0000.00716.68
8.0.110.0070.00016.75
8.0.100.0070.00016.77
8.0.90.0030.00316.62
8.0.80.0040.01216.67
8.0.70.0000.00716.71
8.0.60.0000.00716.76
8.0.50.0000.00716.71
8.0.30.0090.00916.88
8.0.20.0140.00917.40
8.0.10.0040.00416.71
8.0.00.0150.00316.45
7.4.330.0030.00315.00
7.4.320.0000.00616.43
7.4.300.0080.00016.31
7.4.290.0070.00016.31
7.4.280.0040.00416.43
7.4.270.0000.00716.34
7.4.260.0030.00316.45
7.4.250.0040.00416.34
7.4.240.0020.00516.37
7.4.230.0030.00316.24
7.4.220.0130.00716.30
7.4.210.0060.00816.43
7.4.200.0000.00716.20
7.4.190.0000.00716.42
7.4.160.0080.00816.70
7.4.150.0040.01417.40
7.4.140.0100.00717.86
7.4.130.0090.01116.26
7.4.120.0100.00616.41
7.4.110.0090.00916.20
7.4.100.0100.00716.50
7.4.90.0090.00916.34
7.4.80.0080.00819.39
7.4.70.0150.00316.46
7.4.60.0140.00316.38
7.4.50.0000.00416.31
7.4.40.0120.00322.77
7.4.30.0060.01316.54
7.3.330.0060.00012.99
7.3.320.0060.00013.09
7.3.310.0000.00716.09
7.3.300.0030.00516.10
7.3.290.0070.00716.12
7.3.280.0060.00916.13
7.3.270.0080.00917.40
7.3.260.0070.01016.34
7.3.250.0100.01116.43
7.3.240.0120.00616.13
7.3.230.0070.01016.39
7.3.210.0160.00016.15
7.3.200.0150.00619.39
7.3.190.0180.00016.05
7.3.180.0100.00716.30
7.3.170.0120.00316.30
7.3.160.0090.00916.18
7.2.330.0100.00716.32
7.2.320.0060.00916.66
7.2.310.0100.00716.34
7.2.300.0140.00716.50
7.2.290.0060.01216.22
5.4.320.0010.04212.45
5.4.310.0050.03812.45
5.4.300.0080.03512.45
5.4.290.0090.04112.45
5.4.280.0060.04012.32
5.4.270.0120.03712.32
5.4.260.0130.04512.32
5.4.250.0110.05512.32
5.4.240.0200.05912.32
5.4.230.0070.05812.31
5.4.220.0070.06412.31
5.4.210.0120.06712.31
5.4.200.0120.05012.31
5.4.190.0130.08012.30
5.4.180.0120.08112.30
5.4.170.0120.08112.32
5.4.160.0060.06612.31
5.4.150.0120.06112.31
5.4.140.0170.10211.99
5.4.130.0100.03911.98
5.4.120.0090.06411.94
5.4.110.0120.05611.93
5.4.100.0120.05411.93
5.4.90.0230.11611.94
5.4.80.0320.11111.94
5.4.70.0070.09011.93
5.4.60.0130.08511.93
5.4.50.0150.05811.93
5.4.40.0160.05411.92
5.4.30.0170.05011.92
5.4.20.0110.04411.92
5.4.10.0100.07411.92
5.4.00.0090.05011.41
5.3.290.0070.05312.80
5.3.280.0090.05412.71
5.3.270.0170.07412.72
5.3.260.0140.04612.72
5.3.250.0150.05612.72
5.3.240.0070.06612.72
5.3.230.0100.04612.71
5.3.220.0110.04912.68
5.3.210.0110.04812.68
5.3.200.0110.03612.68
5.3.190.0090.03912.68
5.3.180.0150.06612.67
5.3.170.0270.07112.67
5.3.160.0090.05712.67
5.3.150.0120.06912.67
5.3.140.0090.04712.66
5.3.130.0060.04312.65
5.3.120.0070.04212.66
5.3.110.0080.03912.66
5.3.100.0100.05412.12
5.3.90.0090.03712.08
5.3.80.0090.03812.07
5.3.70.0090.04412.08
5.3.60.0150.05612.06
5.3.50.0090.04312.00
5.3.40.0110.04612.00
5.3.30.0070.05711.94
5.3.20.0070.05911.70
5.3.10.0090.07411.67
5.3.00.0130.08311.65

preferences:
68.78 ms | 400 KiB | 5 Q