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 StdClass; } } $b = new Bar; var_dump( (string) $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.0030.01018.43
8.3.50.0100.01321.02
8.3.40.0130.01018.60
8.3.30.0070.00720.09
8.3.20.0040.00420.22
8.3.10.0080.00021.99
8.3.00.0050.00322.46
8.2.180.0040.01516.63
8.2.170.0100.01022.96
8.2.160.0070.00722.12
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00020.80
8.2.110.0000.00920.47
8.2.100.0090.00317.71
8.2.90.0050.00317.63
8.2.80.0000.00818.80
8.2.70.0040.00417.90
8.2.60.0000.00817.38
8.2.50.0000.00817.63
8.2.40.0030.00619.35
8.2.30.0040.00417.61
8.2.20.0070.00017.39
8.2.10.0090.00017.42
8.2.00.0040.00417.55
8.1.280.0140.00625.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0110.00428.09
8.1.240.0040.00423.87
8.1.230.0110.00019.21
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0030.00617.10
8.1.180.0080.00018.10
8.1.170.0070.00017.62
8.1.160.0050.00218.73
8.1.150.0000.00718.50
8.1.140.0070.00017.22
8.1.130.0000.00717.34
8.1.120.0050.00217.32
8.1.110.0040.00417.24
8.1.100.0000.00717.20
8.1.90.0000.00717.34
8.1.80.0000.00717.31
8.1.70.0070.00017.24
8.1.60.0000.00917.40
8.1.50.0000.00817.44
8.1.40.0080.00017.36
8.1.30.0040.00417.38
8.1.20.0000.00817.41
8.1.10.0090.00017.43
8.1.00.0040.00417.36
8.0.300.0050.00218.77
8.0.290.0000.00716.75
8.0.280.0030.00317.92
8.0.270.0070.00017.91
8.0.260.0000.00616.74
8.0.250.0030.00316.82
8.0.240.0080.00016.80
8.0.230.0030.00316.81
8.0.220.0030.00316.76
8.0.210.0000.00716.78
8.0.200.0000.00716.78
8.0.190.0000.00816.83
8.0.180.0000.00716.79
8.0.170.0000.00816.75
8.0.160.0070.00016.66
8.0.150.0000.00816.76
8.0.140.0000.00716.60
8.0.130.0030.00313.30
8.0.120.0070.00016.72
8.0.110.0000.00816.75
8.0.100.0040.00416.58
8.0.90.0000.00716.80
8.0.80.0070.01016.71
8.0.70.0040.00416.74
8.0.60.0000.00816.64
8.0.50.0000.00716.73
8.0.30.0110.00816.97
8.0.20.0130.00917.40
8.0.10.0050.00216.87
8.0.00.0090.00816.61
7.4.330.0000.00615.00
7.4.320.0030.00316.46
7.4.300.0040.00416.28
7.4.290.0040.00416.21
7.4.280.0060.00016.45
7.4.270.0080.00316.26
7.4.260.0050.00013.14
7.4.250.0000.00716.48
7.4.240.0040.00316.30
7.4.230.0070.00016.34
7.4.220.0090.00916.32
7.4.210.0080.00916.44
7.4.200.0000.00716.48
7.4.190.0070.00016.52
7.4.160.0120.00916.39
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0060.01216.26
7.4.120.0080.01216.31
7.4.110.0100.00716.34
7.4.100.0200.00516.50
7.4.90.0110.00516.40
7.4.80.0030.01819.39
7.4.70.0100.00716.33
7.4.60.0130.00316.08
7.4.50.0080.00016.46
7.4.40.0070.00422.77
7.4.30.0030.01416.33
7.3.330.0000.00513.20
7.3.320.0020.00213.00
7.3.310.0000.00716.19
7.3.300.0030.00316.17
7.3.290.0090.00916.18
7.3.280.0050.00916.11
7.3.270.0130.00317.40
7.3.260.0120.00816.55
7.3.250.0120.00916.44
7.3.240.0060.01216.28
7.3.230.0060.00916.43
7.3.210.0100.00716.36
7.3.200.0030.01819.39
7.3.190.0100.01316.21
7.3.180.0080.00816.25
7.3.170.0090.00616.27
7.3.160.0070.01016.53
7.2.330.0030.01716.57
7.2.320.0090.00916.18
7.2.310.0090.01416.52
7.2.300.0040.01216.54
7.2.290.0040.01316.27
5.4.280.0330.04019.24
5.4.270.0470.03019.14
5.4.260.0370.04019.24
5.4.250.0430.07019.13
5.4.240.0500.06318.98
5.4.230.0470.03319.05
5.4.220.0430.04318.97
5.4.210.0430.03318.94
5.4.200.0370.03719.14
5.4.190.0300.03719.21
5.4.180.0230.04718.93
5.4.170.0400.03018.84
5.4.160.0330.03719.17
5.4.150.0370.03319.30
5.4.140.0330.03316.34
5.4.130.0300.03716.28
5.4.120.0400.03316.32
5.4.110.0330.03316.37
5.4.100.0330.03316.40
5.4.90.0300.03316.32
5.4.80.0330.03316.57
5.4.70.0330.03016.49
5.4.60.0300.03716.43
5.4.50.0370.02716.25
5.4.40.0300.03716.34
5.4.30.0400.04016.52
5.4.20.0270.04016.51
5.4.10.0370.03016.57
5.4.00.0430.03715.79
5.3.290.0470.06014.75
5.3.280.0400.04314.54
5.3.270.0330.03714.54
5.3.260.0400.03014.55
5.3.250.0300.03714.39
5.3.240.0330.03314.44
5.3.230.0330.03314.54
5.3.220.0330.03714.54
5.3.210.0330.04714.42
5.3.200.0370.03014.50
5.3.190.0330.03714.40
5.3.180.0330.03314.42
5.3.170.0370.03014.40
5.3.160.0330.03314.51
5.3.150.0300.03714.50
5.3.140.0370.04714.39
5.3.130.0270.04014.59
5.3.120.0300.04014.38
5.3.110.0400.03014.38
5.3.100.0330.04013.88
5.3.90.0370.03013.98
5.3.80.0430.02313.79
5.3.70.0230.04013.96
5.3.60.0500.03013.83
5.3.50.0430.06313.89
5.3.40.0400.07013.87
5.3.30.0330.04713.95
5.3.20.0370.06713.78
5.3.10.0400.05713.63
5.3.00.0330.05013.58

preferences:
37.14 ms | 401 KiB | 5 Q