3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Baz { } interface Foo { public function foo(String $foo) : String; } class Bar implements Foo { public function foo(String $foo) { return new Baz; } } $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.00618.56
8.3.50.0110.00421.92
8.3.40.0080.00618.76
8.3.30.0150.00020.25
8.3.20.0040.00420.07
8.3.10.0040.00422.12
8.3.00.0080.00022.31
8.2.180.0100.01016.38
8.2.170.0140.00422.96
8.2.160.0110.00322.13
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0140.00026.16
8.2.120.0000.00719.70
8.2.110.0000.00920.43
8.2.100.0070.00417.78
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0110.00017.79
8.2.50.0080.00318.07
8.2.40.0080.00018.16
8.2.30.0060.00317.92
8.2.20.0000.00817.54
8.2.10.0040.00417.57
8.2.00.0000.00717.53
8.1.280.0070.01025.92
8.1.270.0000.00824.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00323.77
8.1.230.0060.00620.94
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0040.00417.40
8.1.180.0040.00419.01
8.1.170.0040.00418.56
8.1.160.0030.00522.11
8.1.150.0040.00418.42
8.1.140.0040.00417.41
8.1.130.0000.00717.76
8.1.120.0060.00317.23
8.1.110.0000.00717.21
8.1.100.0000.00817.27
8.1.90.0040.00417.32
8.1.80.0000.00717.37
8.1.70.0030.00317.20
8.1.60.0000.00817.39
8.1.50.0040.00417.30
8.1.40.0000.00917.30
8.1.30.0000.00817.38
8.1.20.0040.00417.36
8.1.10.0040.00417.46
8.1.00.0000.00817.25
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0000.00717.20
8.0.260.0030.00316.66
8.0.250.0000.00716.74
8.0.240.0040.00416.82
8.0.230.0030.00316.71
8.0.220.0030.00616.64
8.0.210.0020.00516.68
8.0.200.0000.00816.77
8.0.190.0050.00216.71
8.0.180.0040.00416.77
8.0.170.0040.00416.67
8.0.160.0030.00316.77
8.0.150.0030.00316.60
8.0.140.0040.00416.62
8.0.130.0030.00313.32
8.0.120.0030.00316.71
8.0.110.0000.00816.68
8.0.100.0040.00416.76
8.0.90.0070.00016.73
8.0.80.0060.00916.63
8.0.70.0000.00816.72
8.0.60.0000.00816.75
8.0.50.0040.00416.78
8.0.30.0020.01616.87
8.0.20.0090.01117.40
8.0.10.0070.00016.84
8.0.00.0090.00916.68
7.4.330.0000.00515.00
7.4.320.0060.00016.46
7.4.300.0040.00416.37
7.4.290.0000.00616.40
7.4.280.0030.00316.26
7.4.270.0000.00616.35
7.4.260.0050.00313.16
7.4.250.0000.00716.26
7.4.240.0020.00516.33
7.4.230.0060.00016.39
7.4.220.0070.01116.54
7.4.210.0060.00916.45
7.4.200.0030.00316.54
7.4.190.0020.00516.22
7.4.160.0060.01216.48
7.4.150.0080.00817.40
7.4.140.0110.01117.86
7.4.130.0100.00616.42
7.4.120.0100.00816.32
7.4.110.0130.00316.30
7.4.100.0110.01116.44
7.4.90.0130.00416.22
7.4.80.0150.00319.39
7.4.70.0030.01316.29
7.4.60.0000.01516.23
7.4.50.0000.00916.31
7.4.40.0060.00922.77
7.4.30.0030.01416.43
7.3.330.0020.00213.07
7.3.320.0000.00512.99
7.3.310.0030.00315.97
7.3.300.0030.00316.12
7.3.290.0110.00716.16
7.3.280.0110.00416.18
7.3.270.0190.00417.40
7.3.260.0210.00316.29
7.3.250.0070.01216.28
7.3.240.0100.00716.22
7.3.230.0060.01216.41
7.3.210.0090.00616.59
7.3.200.0100.00619.39
7.3.190.0110.01116.35
7.3.180.0050.01116.18
7.3.170.0110.00616.35
7.3.160.0110.01116.16
7.2.330.0090.01216.46
7.2.320.0060.01316.35
7.2.310.0160.00016.46
7.2.300.0130.00316.50
7.2.290.0110.00516.58
5.4.280.0170.04019.06
5.4.270.0270.07319.19
5.4.260.0230.03719.09
5.4.250.0230.05018.83
5.4.240.0230.05319.05
5.4.230.0170.04018.86
5.4.220.0270.07019.09
5.4.210.0370.03719.14
5.4.200.0300.04318.86
5.4.190.0200.07319.08
5.4.180.0300.05719.05
5.4.170.0300.04718.97
5.4.160.0270.03318.83
5.4.150.0170.04019.13
5.4.140.0200.06016.33
5.4.130.0200.04316.45
5.4.120.0200.05716.47
5.4.110.0100.04016.59
5.4.100.0170.03716.36
5.4.90.0270.06716.58
5.4.80.0170.04016.53
5.4.70.0230.04316.23
5.4.60.0170.07016.54
5.4.50.0270.06316.22
5.4.40.0200.05316.43
5.4.30.0270.06316.51
5.4.20.0200.05316.48
5.4.10.0230.07316.41
5.4.00.0200.05715.76
5.3.290.0200.05014.54
5.3.280.0230.07014.64
5.3.270.0330.03014.43
5.3.260.0230.05714.69
5.3.250.0230.07314.55
5.3.240.0270.03714.45
5.3.230.0230.04314.54
5.3.220.0270.05014.40
5.3.210.0370.06314.43
5.3.200.0270.04014.65
5.3.190.0300.05014.41
5.3.180.0330.07014.46
5.3.170.0230.06014.41
5.3.160.0200.05014.39
5.3.150.0200.07314.54
5.3.140.0370.03314.34
5.3.130.0200.04014.49
5.3.120.0270.06714.49
5.3.110.0270.04014.42
5.3.100.0330.06013.94
5.3.90.0270.07313.98
5.3.80.0200.04013.96
5.3.70.0170.07313.79
5.3.60.0270.04314.09
5.3.50.0170.07013.88
5.3.40.0170.04713.96
5.3.30.0230.07013.85
5.3.20.0300.03713.59
5.3.10.0270.07313.63
5.3.00.0270.04713.65

preferences:
37.68 ms | 401 KiB | 5 Q