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.0100.00716.38
8.3.50.0100.00621.85
8.3.40.0120.00318.63
8.3.30.0000.01419.02
8.3.20.0080.00020.27
8.3.10.0040.00423.52
8.3.00.0090.00019.26
8.2.180.0070.00718.28
8.2.170.0090.00922.96
8.2.160.0000.01420.39
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.01326.16
8.2.120.0080.00022.27
8.2.110.0090.00022.10
8.2.100.0080.00417.78
8.2.90.0050.00317.78
8.2.80.0050.00317.97
8.2.70.0110.00017.50
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00417.91
8.2.30.0000.00817.96
8.2.20.0040.00417.54
8.2.10.0000.00717.96
8.2.00.0030.00817.54
8.1.280.0040.01525.92
8.1.270.0080.00023.91
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00022.30
8.1.230.0090.00320.90
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0050.00317.39
8.1.180.0030.00618.89
8.1.170.0040.00418.60
8.1.160.0040.00421.87
8.1.150.0040.00418.50
8.1.140.0000.00717.30
8.1.130.0070.00017.65
8.1.120.0000.00717.21
8.1.110.0040.00417.23
8.1.100.0040.00417.29
8.1.90.0050.00217.30
8.1.80.0000.00717.37
8.1.70.0070.00017.23
8.1.60.0000.01317.49
8.1.50.0030.00517.25
8.1.40.0050.00317.35
8.1.30.0040.00417.45
8.1.20.0030.00617.50
8.1.10.0040.00417.38
8.1.00.0000.00817.29
8.0.300.0000.00819.89
8.0.290.0030.00617.05
8.0.280.0070.00018.42
8.0.270.0000.00717.16
8.0.260.0030.00317.18
8.0.250.0000.00716.79
8.0.240.0050.00216.85
8.0.230.0000.00716.71
8.0.220.0040.00416.64
8.0.210.0030.00316.77
8.0.200.0000.00716.82
8.0.190.0040.00416.78
8.0.180.0020.00516.66
8.0.170.0030.00616.61
8.0.160.0000.00716.79
8.0.150.0030.00316.72
8.0.140.0030.00316.73
8.0.130.0000.00613.30
8.0.120.0070.00016.76
8.0.110.0070.00016.77
8.0.100.0000.00716.82
8.0.90.0070.00016.66
8.0.80.0180.00416.75
8.0.70.0000.00716.70
8.0.60.0040.00416.63
8.0.50.0040.00416.72
8.0.30.0140.00416.94
8.0.20.0090.01017.40
8.0.10.0070.00016.89
8.0.00.0080.01216.59
7.4.330.0060.00015.00
7.4.320.0060.00016.45
7.4.300.0050.00316.35
7.4.290.0000.00716.38
7.4.280.0040.00416.30
7.4.270.0040.00416.41
7.4.260.0000.00716.45
7.4.250.0020.00516.34
7.4.240.0040.00316.48
7.4.230.0060.00016.55
7.4.220.0110.00716.23
7.4.210.0100.00616.43
7.4.200.0000.00716.35
7.4.190.0040.00416.27
7.4.160.0030.01216.65
7.4.150.0060.01317.40
7.4.140.0140.02217.86
7.4.130.0130.00316.34
7.4.120.0080.00916.38
7.4.110.0060.01216.18
7.4.100.0130.01016.50
7.4.90.0070.01616.44
7.4.80.0100.01019.39
7.4.70.0070.01016.36
7.4.60.0070.01516.41
7.4.50.0000.00516.17
7.4.40.0070.00522.77
7.4.30.0060.01016.40
7.3.330.0060.00013.18
7.3.320.0020.00213.27
7.3.310.0000.00716.22
7.3.300.0030.00316.09
7.3.290.0090.00616.09
7.3.280.0110.00516.20
7.3.270.0090.00817.40
7.3.260.0030.01316.05
7.3.250.0100.01016.33
7.3.240.0130.00616.40
7.3.230.0090.00616.39
7.3.210.0070.01016.51
7.3.200.0150.00619.39
7.3.190.0120.00916.37
7.3.180.0100.01116.10
7.3.170.0060.00916.51
7.3.160.0130.00316.45
7.2.330.0100.00716.40
7.2.320.0100.00716.68
7.2.310.0100.01316.26
7.2.300.0090.01216.37
7.2.290.0070.01016.36
5.4.320.0050.03612.45
5.4.310.0050.04112.45
5.4.300.0040.03912.45
5.4.290.0070.03812.45
5.4.280.0130.07612.32
5.4.270.0090.07312.32
5.4.260.0160.06912.32
5.4.250.0100.05312.32
5.4.240.0090.06212.32
5.4.230.0090.05412.31
5.4.220.0110.05012.31
5.4.210.0200.05712.31
5.4.200.0070.05712.31
5.4.190.0110.04712.31
5.4.180.0050.05712.31
5.4.170.0090.04712.32
5.4.160.0100.07812.32
5.4.150.0090.05212.31
5.4.140.0110.05112.00
5.4.130.0140.05511.98
5.4.120.0290.08611.94
5.4.110.0090.06211.94
5.4.100.0210.06111.94
5.4.90.0120.07911.94
5.4.80.0140.06311.94
5.4.70.0100.13411.93
5.4.60.0100.06111.93
5.4.50.0130.06911.93
5.4.40.0150.04311.92
5.4.30.0150.07111.92
5.4.20.0230.06811.92
5.4.10.0210.05411.92
5.4.00.0100.05911.41
5.3.290.0080.04612.80
5.3.280.0100.05512.70
5.3.270.0180.10112.73
5.3.260.0150.07512.72
5.3.250.0180.07712.72
5.3.240.0250.09512.72
5.3.230.0210.08212.71
5.3.220.0160.10112.68
5.3.210.0100.05612.68
5.3.200.0120.06512.68
5.3.190.0060.06212.68
5.3.180.0120.06412.67
5.3.170.0090.06412.67
5.3.160.0130.07512.67
5.3.150.0170.09212.68
5.3.140.0120.07812.66
5.3.130.0080.07412.66
5.3.120.0140.05512.66
5.3.110.0150.06912.65
5.3.100.0100.06012.12
5.3.90.0150.06112.08
5.3.80.0050.03912.07
5.3.70.0120.06512.07
5.3.60.0200.05812.06
5.3.50.0240.06012.00
5.3.40.0350.13012.00
5.3.30.0250.07511.93
5.3.20.0270.09611.70
5.3.10.0140.07011.66
5.3.00.0150.08411.65

preferences:
43.87 ms | 401 KiB | 5 Q