3v4l.org

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

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.01218.30
8.3.50.0130.00821.98
8.3.40.0140.00018.51
8.3.30.0100.00720.27
8.3.20.0070.00020.21
8.3.10.0040.00421.95
8.3.00.0000.00822.34
8.2.180.0170.00316.38
8.2.170.0140.00022.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.41
8.2.110.0050.00522.09
8.2.100.0080.00319.23
8.2.90.0040.00419.22
8.2.80.0040.00419.48
8.2.70.0000.00917.49
8.2.60.0070.00017.80
8.2.50.0000.00818.07
8.2.40.0000.00718.09
8.2.30.0040.00417.79
8.2.20.0040.00417.61
8.2.10.0030.00617.54
8.2.00.0040.00417.46
8.1.280.0120.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.77
8.1.230.0110.00019.00
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00317.12
8.1.190.0050.00317.18
8.1.180.0000.00720.09
8.1.170.0050.00318.48
8.1.160.0030.00522.12
8.1.150.0040.00418.49
8.1.140.0000.00717.30
8.1.130.0030.00317.77
8.1.120.0030.00317.23
8.1.110.0000.00717.34
8.1.100.0030.00317.25
8.1.90.0030.00317.33
8.1.80.0030.00317.21
8.1.70.0040.00417.20
8.1.60.0000.00817.43
8.1.50.0040.00417.34
8.1.40.0000.00817.29
8.1.30.0040.00417.32
8.1.20.0000.00817.44
8.1.10.0040.00417.34
8.1.00.0060.00617.25
8.0.300.0030.00618.77
8.0.290.0000.00717.18
8.0.280.0000.00718.29
8.0.270.0000.00717.09
8.0.260.0060.00016.75
8.0.250.0030.00316.68
8.0.240.0000.00916.82
8.0.230.0000.00716.80
8.0.220.0030.00316.64
8.0.210.0000.00716.79
8.0.200.0030.00316.79
8.0.190.0040.00416.83
8.0.180.0030.00716.80
8.0.170.0030.00516.78
8.0.160.0000.00816.73
8.0.150.0000.00716.71
8.0.140.0030.00316.70
8.0.130.0060.00013.46
8.0.120.0050.00316.69
8.0.110.0040.00416.67
8.0.100.0000.00716.81
8.0.90.0000.00716.77
8.0.80.0060.01016.69
8.0.70.0040.00416.81
8.0.60.0040.00416.69
8.0.50.0000.00816.57
8.0.30.0120.00716.89
8.0.20.0070.01417.40
8.0.10.0030.00516.93
8.0.00.0090.01216.51
7.4.330.0020.00215.00
7.4.320.0060.00016.30
7.4.300.0030.00516.44
7.4.290.0030.00316.50
7.4.280.0030.00316.45
7.4.270.0030.00316.43
7.4.260.0000.00716.45
7.4.250.0050.00216.27
7.4.240.0020.00616.44
7.4.230.0030.00316.43
7.4.220.0100.00716.38
7.4.210.0090.00716.42
7.4.200.0000.00716.57
7.4.190.0000.00716.42
7.4.160.0040.01216.64
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0050.01116.24
7.4.120.0100.00716.49
7.4.110.0100.00716.45
7.4.100.0130.00616.38
7.4.90.0140.00316.29
7.4.80.0100.00619.39
7.4.70.0130.00716.37
7.4.60.0030.01316.36
7.4.50.0030.00616.15
7.4.40.0100.00722.77
7.4.30.0000.01816.48
7.3.330.0000.00612.97
7.3.320.0000.00513.07
7.3.310.0000.00716.09
7.3.300.0060.00016.11
7.3.290.0060.01116.16
7.3.280.0080.00916.14
7.3.270.0060.01017.40
7.3.260.0060.01216.28
7.3.250.0100.00716.16
7.3.240.0130.00316.28
7.3.230.0110.00416.39
7.3.210.0000.01516.25
7.3.200.0070.01419.39
7.3.190.0030.01916.30
7.3.180.0080.00916.21
7.3.170.0060.01316.27
7.3.160.0110.00416.36
7.2.330.0150.00916.32
7.2.320.0090.01216.41
7.2.310.0120.01116.24
7.2.300.0040.01416.32
7.2.290.0040.01816.27
5.4.280.0200.05319.09
5.4.270.0230.04018.84
5.4.260.0200.05319.14
5.4.250.0200.04319.05
5.4.240.0270.03019.09
5.4.230.0270.06719.09
5.4.220.0200.04019.21
5.4.210.0200.07319.05
5.4.200.0230.05719.04
5.4.190.0230.05019.12
5.4.180.0300.04018.84
5.4.170.0230.07318.86
5.4.160.0230.07318.92
5.4.150.0170.08019.20
5.4.140.0330.06016.52
5.4.130.0300.04716.67
5.4.120.0170.04316.38
5.4.110.0130.04716.45
5.4.100.0370.07016.56
5.4.90.0270.06716.45
5.4.80.0230.05016.52
5.4.70.0170.04716.52
5.4.60.0300.06716.54
5.4.50.0270.07016.43
5.4.40.0230.04716.51
5.4.30.0200.06016.42
5.4.20.0270.05316.24
5.4.10.0070.05716.39
5.4.00.0200.03015.77
5.3.290.0370.05314.69
5.3.280.0230.04714.46
5.3.270.0200.07714.48
5.3.260.0230.03714.46
5.3.250.0170.06314.43
5.3.240.0330.04314.65
5.3.230.0230.04714.55
5.3.220.0200.04714.61
5.3.210.0170.04014.59
5.3.200.0200.06714.49
5.3.190.0270.05314.39
5.3.180.0170.07014.39
5.3.170.0230.03714.49
5.3.160.0270.07314.40
5.3.150.0300.06714.39
5.3.140.0230.04714.59
5.3.130.0270.05714.42
5.3.120.0170.07014.49
5.3.110.0270.06714.59
5.3.100.0130.06313.88
5.3.90.0270.03714.10
5.3.80.0200.06014.06
5.3.70.0230.06713.84
5.3.60.0200.04713.79
5.3.50.0230.03013.98
5.3.40.0230.05713.85
5.3.30.0200.03713.81
5.3.20.0170.05313.53
5.3.10.0270.07313.60
5.3.00.0270.06713.57

preferences:
58.03 ms | 400 KiB | 5 Q