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($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.70.0120.00916.58
8.3.60.0070.01016.50
8.3.50.0100.00621.85
8.3.40.0040.01118.50
8.3.30.0100.00718.92
8.3.20.0080.00020.39
8.3.10.0080.00023.71
8.3.00.0040.00419.67
8.2.180.0040.01118.04
8.2.170.0130.00722.96
8.2.160.0140.00422.20
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00421.02
8.2.110.0000.01019.30
8.2.100.0060.00617.58
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0070.00017.68
8.2.50.0030.00618.07
8.2.40.0040.00418.03
8.2.30.0090.00018.17
8.2.20.0040.00417.61
8.2.10.0070.00019.61
8.2.00.0040.00417.48
8.1.280.0080.00525.92
8.1.270.0050.00523.90
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00320.93
8.1.230.0040.00717.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00917.10
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.44
8.1.160.0000.00821.84
8.1.150.0000.00718.73
8.1.140.0050.00317.30
8.1.130.0070.00017.75
8.1.120.0000.00717.34
8.1.110.0070.00017.29
8.1.100.0030.00517.24
8.1.90.0040.00417.30
8.1.80.0000.00817.24
8.1.70.0030.00317.34
8.1.60.0030.00617.44
8.1.50.0000.00817.27
8.1.40.0040.00417.43
8.1.30.0000.00817.33
8.1.20.0070.00017.47
8.1.10.0000.00717.44
8.1.00.0000.00817.38
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00516.79
8.0.260.0040.00417.20
8.0.250.0000.00716.82
8.0.240.0050.00316.78
8.0.230.0030.00316.82
8.0.220.0070.00316.71
8.0.210.0040.00416.63
8.0.200.0030.00316.76
8.0.190.0000.00816.78
8.0.180.0040.00416.74
8.0.170.0040.00416.77
8.0.160.0030.00616.80
8.0.150.0070.00016.74
8.0.140.0000.00716.77
8.0.130.0060.00013.46
8.0.120.0070.00016.72
8.0.110.0050.00316.58
8.0.100.0000.00716.63
8.0.90.0040.00416.72
8.0.80.0050.01316.74
8.0.70.0000.00816.80
8.0.60.0000.00716.76
8.0.50.0040.00416.57
8.0.30.0140.01116.90
8.0.20.0090.00917.40
8.0.10.0070.00016.86
8.0.00.0060.01116.78
7.4.330.0020.00215.00
7.4.320.0000.00616.28
7.4.300.0060.00016.50
7.4.290.0000.00616.48
7.4.280.0030.00516.36
7.4.270.0000.00816.35
7.4.260.0100.00016.27
7.4.250.0000.00816.41
7.4.240.0020.00516.42
7.4.230.0030.00316.49
7.4.220.0000.01716.22
7.4.210.0070.00716.33
7.4.200.0000.00716.20
7.4.160.0100.00616.31
7.4.150.0090.01217.40
7.4.140.0110.00917.86
7.4.130.0100.00716.31
7.4.120.0060.01016.23
7.4.110.0070.01116.28
7.4.100.0100.00716.34
7.4.90.0070.01316.35
7.4.80.0080.00819.39
7.4.70.0160.00316.44
7.4.60.0120.00616.44
7.4.50.0050.00016.40
7.4.40.0030.01316.48
7.4.30.0060.01016.51
7.3.330.0050.00013.28
7.3.320.0000.00513.14
7.3.310.0030.00316.20
7.3.300.0070.00016.11
7.3.290.0110.00316.24
7.3.280.0090.00816.11
7.3.270.0070.01017.40
7.3.260.0140.00716.21
7.3.250.0120.00616.19
7.3.240.0120.00616.47
7.3.230.0130.00916.41
7.3.210.0110.00516.47
7.3.200.0120.00619.39
7.3.190.0100.00716.23
7.3.180.0090.00716.14
7.3.170.0100.00716.27
7.3.160.0180.00316.33
7.2.330.0070.01016.54
7.2.320.0160.00616.42
7.2.310.0100.00916.23
7.2.300.0030.01316.41
7.2.290.0170.00716.52
5.4.310.0070.08318.87
5.4.300.0070.07319.11
5.4.290.0030.04019.14
5.4.280.0130.05318.84
5.4.270.0070.07318.83
5.4.260.0030.04019.14
5.4.250.0030.07718.84
5.4.240.0100.05319.23
5.4.230.0070.07319.20
5.4.220.0070.07719.13
5.4.210.0100.07319.13
5.4.200.0030.04319.11
5.4.190.0070.04719.23
5.4.180.0030.08019.23
5.4.170.0100.07319.20
5.4.160.0070.07318.83
5.4.150.0030.05018.90
5.4.140.0170.07016.40
5.4.130.0030.04716.37
5.4.120.0100.05716.34
5.4.110.0070.05716.66
5.4.100.0070.04016.43
5.4.90.0070.07716.50
5.4.80.0170.06716.39
5.4.70.0000.04716.41
5.4.60.0030.07716.38
5.4.50.0100.06016.38
5.4.40.0170.05316.25
5.4.30.0100.06716.50
5.4.20.0100.05316.34
5.4.10.0130.06316.50
5.4.00.0030.07715.87
5.3.290.0030.05714.64
5.3.280.0130.06014.52
5.3.270.0030.06314.54
5.3.260.0070.05314.39
5.3.250.0000.06314.69
5.3.240.0000.07014.48
5.3.230.0100.05014.52
5.3.220.0070.04314.49
5.3.210.0130.07014.67
5.3.200.0100.05714.65
5.3.190.0070.07714.50
5.3.180.0130.05314.64
5.3.170.0030.06014.38
5.3.160.0070.06314.35
5.3.150.0070.07314.46
5.3.140.0070.06014.53
5.3.130.0170.07014.48
5.3.120.0100.07314.50
5.3.110.0000.08314.44
5.3.100.0000.06313.85
5.3.90.0100.07013.96
5.3.80.0000.08013.95
5.3.70.0070.07713.94
5.3.60.0030.05013.94
5.3.50.0000.05313.88
5.3.40.0070.07013.78
5.3.30.0030.06013.84
5.3.20.0100.05313.63
5.3.10.0070.03713.61
5.3.00.0100.03313.55

preferences:
38.81 ms | 401 KiB | 5 Q