3v4l.org

run code in 300+ PHP versions simultaneously
<?hh // strict 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($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.0070.01316.38
8.3.50.0090.01218.16
8.3.40.0110.00418.54
8.3.30.0080.00819.05
8.3.20.0050.00220.16
8.3.10.0080.00023.66
8.3.00.0080.00019.13
8.2.180.0070.00718.01
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00722.33
8.2.110.0210.00022.25
8.2.100.0040.00817.84
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0050.00517.50
8.2.60.0000.00717.93
8.2.50.0060.00318.07
8.2.40.0000.00718.03
8.2.30.0060.00318.06
8.2.20.0040.00417.60
8.2.10.0050.00317.98
8.2.00.0070.00317.47
8.1.270.0090.00023.83
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.92
8.1.230.0080.00419.16
8.1.220.0000.00717.74
8.1.210.0040.00718.77
8.1.200.0040.00417.22
8.1.190.0000.00817.16
8.1.180.0040.00718.89
8.1.170.0040.00418.50
8.1.160.0000.00721.99
8.1.150.0050.00218.40
8.1.140.0040.00417.26
8.1.130.0040.00417.62
8.1.120.0040.00417.28
8.1.110.0040.00417.31
8.1.100.0040.00417.26
8.1.90.0050.00317.34
8.1.80.0050.00317.32
8.1.70.0000.00617.22
8.1.60.0040.00417.48
8.1.50.0040.00417.27
8.1.40.0080.00017.27
8.1.30.0000.00817.30
8.1.20.0040.00417.43
8.1.10.0070.00017.43
8.1.00.0000.00717.25
8.0.300.0000.00818.98
8.0.290.0070.00017.15
8.0.280.0030.00318.43
8.0.270.0070.00017.16
8.0.260.0030.00317.12
8.0.250.0040.00416.79
8.0.240.0060.00016.85
8.0.230.0030.00516.71
8.0.220.0070.00016.74
8.0.210.0060.00016.75
8.0.200.0030.00316.78
8.0.190.0070.00016.82
8.0.180.0040.00416.80
8.0.170.0030.00516.68
8.0.160.0040.00416.68
8.0.150.0040.00416.60
8.0.140.0040.00416.60
8.0.130.0000.00513.32
8.0.120.0080.00016.73
8.0.110.0030.00516.57
8.0.100.0000.00816.86
8.0.90.0040.00416.77
8.0.80.0060.00916.70
8.0.70.0040.00416.64
8.0.60.0080.00016.79
8.0.50.0030.00516.60
8.0.30.0070.01117.04
8.0.20.0120.00817.40
8.0.10.0030.00616.71
8.0.00.0100.00916.55
7.4.330.0000.00615.00
7.4.320.0000.00716.37
7.4.300.0060.00316.45
7.4.290.0020.00516.50
7.4.280.0000.00716.50
7.4.270.0000.00716.47
7.4.260.0000.00716.36
7.4.250.0000.00716.39
7.4.240.0030.00316.36
7.4.230.0050.00216.29
7.4.220.0160.00316.40
7.4.210.0090.00716.43
7.4.200.0030.00316.29
7.4.190.0000.00716.54
7.4.160.0110.00416.27
7.4.150.0000.01717.40
7.4.140.0190.01317.86
7.4.130.0080.00916.37
7.4.120.0080.01016.36
7.4.110.0080.00916.45
7.4.100.0130.00316.35
7.4.90.0060.01116.30
7.4.80.0150.00619.39
7.4.70.0140.00616.56
7.4.60.0070.01116.36
7.4.50.0040.00416.19
7.4.40.0100.00722.77
7.4.30.0120.00316.20
7.3.330.0000.00613.09
7.3.320.0000.00513.21
7.3.310.0040.00416.00
7.3.300.0000.00716.07
7.3.290.0070.01316.06
7.3.280.0070.01216.16
7.3.270.0120.00317.40
7.3.260.0100.00716.38
7.3.250.0080.00916.35
7.3.240.0030.01516.32
7.3.230.0090.01216.50
7.3.210.0040.01416.30
7.3.200.0150.00919.39
7.3.190.0170.00316.14
7.3.180.0130.00316.15
7.3.170.0170.00016.27
7.3.160.0130.00316.49
7.2.330.0100.00716.39
7.2.320.0130.00316.27
7.2.310.0040.01216.41
7.2.300.0150.00316.42
7.2.290.0150.00016.15
5.5.120.0070.07720.30
5.5.110.0070.05020.14
5.5.100.0030.08020.21
5.5.90.0000.06320.10
5.5.80.0070.05319.95
5.5.70.0070.07319.96
5.5.60.0100.07020.09
5.5.50.0030.07020.20
5.5.40.0000.08020.06
5.5.30.0000.08019.98
5.5.20.0100.07020.18
5.5.10.0030.07720.06
5.5.00.0070.07320.07
5.4.280.0070.07319.05
5.4.270.0070.06319.05
5.4.260.0070.07019.02
5.4.250.0070.07019.00
5.4.240.0030.07319.12
5.4.230.0030.06718.90
5.4.220.0070.06019.07
5.4.210.0100.06019.00
5.4.200.0030.07719.21
5.4.190.0030.07319.06
5.4.180.0030.07718.92
5.4.170.0070.06718.93
5.4.160.0000.05719.05
5.4.150.0070.06719.15
5.4.140.0000.07016.48
5.4.130.0030.05016.43
5.4.120.0130.03016.42
5.4.110.0070.07316.47
5.4.100.0070.06016.48
5.4.90.0070.06716.42
5.4.80.0030.06316.39
5.4.70.0030.07016.30
5.4.60.0100.06716.23
5.4.50.0070.07016.39
5.4.40.0000.06716.55
5.4.30.0130.04016.41
5.4.20.0030.07016.28
5.4.10.0030.06716.39
5.4.00.0030.07315.93
5.3.290.0070.07314.58
5.3.280.0030.07014.37
5.3.270.0030.07714.52
5.3.260.0000.07714.52
5.3.250.0070.07014.46
5.3.240.0070.07014.50
5.3.230.0000.05014.54
5.3.220.0030.04714.46
5.3.210.0000.07014.51
5.3.200.0030.07314.48
5.3.190.0070.06014.50
5.3.180.0030.05314.54
5.3.170.0000.07314.54
5.3.160.0070.07314.50
5.3.150.0030.07014.52
5.3.140.0030.07714.53
5.3.130.0000.07714.33
5.3.120.0000.06714.33
5.3.110.0030.07714.52
5.3.100.0070.07014.01
5.3.90.0030.07713.86
5.3.80.0070.07313.93
5.3.70.0030.07313.77
5.3.60.0000.07313.78
5.3.50.0100.06713.91
5.3.40.0000.05313.75
5.3.30.0000.07013.75
5.3.20.0070.07313.63
5.3.10.0000.06713.55
5.3.00.0030.07313.41

preferences:
62.43 ms | 400 KiB | 5 Q