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; $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.0070.01418.43
8.3.50.0120.00721.98
8.3.40.0110.00418.65
8.3.30.0070.00720.17
8.3.20.0070.00720.25
8.3.10.0020.00521.96
8.3.00.0080.00022.39
8.2.180.0110.00318.29
8.2.170.0070.00722.96
8.2.160.0130.00322.01
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0040.00419.65
8.2.110.0100.00022.20
8.2.100.0090.00617.66
8.2.90.0040.00419.27
8.2.80.0000.00719.34
8.2.70.0040.00417.38
8.2.60.0040.00417.91
8.2.50.0060.00318.07
8.2.40.0000.00818.03
8.2.30.0070.00017.88
8.2.20.0080.00017.44
8.2.10.0040.00417.58
8.2.00.0100.00017.56
8.1.280.0070.01325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00923.75
8.1.230.0080.00319.22
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0070.00017.41
8.1.180.0040.00419.01
8.1.170.0060.00318.59
8.1.160.0040.00422.04
8.1.150.0000.01018.52
8.1.140.0040.00417.28
8.1.130.0000.00717.69
8.1.120.0040.00417.38
8.1.110.0040.00417.31
8.1.100.0030.00617.30
8.1.90.0000.00717.21
8.1.80.0070.00017.33
8.1.70.0000.00617.21
8.1.60.0050.00517.40
8.1.50.0000.00717.25
8.1.40.0000.00717.39
8.1.30.0040.00417.42
8.1.20.0000.00817.34
8.1.10.0000.00717.41
8.1.00.0040.00417.34
8.0.300.0030.00318.77
8.0.290.0000.00717.05
8.0.280.0030.00318.41
8.0.270.0080.00016.66
8.0.260.0070.00016.78
8.0.250.0000.00616.82
8.0.240.0040.00416.83
8.0.230.0030.00316.81
8.0.220.0000.00716.64
8.0.210.0030.00316.68
8.0.200.0000.00716.88
8.0.190.0000.00716.88
8.0.180.0030.00716.80
8.0.170.0050.00216.76
8.0.160.0000.00716.68
8.0.150.0030.00516.65
8.0.140.0000.00716.59
8.0.130.0060.00013.41
8.0.120.0020.00516.69
8.0.110.0000.00716.75
8.0.100.0030.00316.61
8.0.90.0040.00416.62
8.0.80.0060.01016.66
8.0.70.0070.00016.75
8.0.60.0000.00716.63
8.0.50.0000.00816.75
8.0.30.0110.00716.95
8.0.20.0120.00617.40
8.0.10.0070.00016.77
8.0.00.0080.01016.61
7.4.330.0000.00515.00
7.4.320.0060.00016.34
7.4.300.0000.00616.36
7.4.290.0040.00416.50
7.4.280.0000.00716.35
7.4.270.0060.00016.39
7.4.260.0050.00216.44
7.4.250.0050.00216.43
7.4.240.0030.00316.40
7.4.230.0000.00716.35
7.4.220.0070.01016.50
7.4.210.0050.01116.41
7.4.200.0030.00316.57
7.4.190.0040.00416.38
7.4.160.0000.01516.27
7.4.150.0110.00617.40
7.4.140.0140.00617.86
7.4.130.0070.01016.41
7.4.120.0130.00616.34
7.4.110.0070.01016.44
7.4.100.0070.01016.57
7.4.90.0000.01716.21
7.4.80.0110.00619.39
7.4.70.0060.01016.34
7.4.60.0140.00416.24
7.4.50.0030.00516.12
7.4.40.0120.00322.77
7.4.30.0060.01016.43
7.3.330.0000.00613.20
7.3.320.0000.00512.92
7.3.310.0000.00716.08
7.3.300.0040.00416.16
7.3.290.0060.01316.16
7.3.280.0060.01016.09
7.3.270.0130.00317.40
7.3.260.0070.01016.19
7.3.250.0110.01016.13
7.3.240.0120.00616.18
7.3.230.0080.00816.39
7.3.210.0120.00616.16
7.3.200.0130.00319.39
7.3.190.0120.00616.18
7.3.180.0120.00316.33
7.3.170.0120.00316.27
7.3.160.0140.00316.22
7.2.330.0110.00716.37
7.2.320.0100.00716.63
7.2.310.0120.01216.51
7.2.300.0130.01316.55
7.2.290.0130.00316.22
5.4.320.0090.03212.45
5.4.310.0050.04012.45
5.4.300.0070.03512.45
5.4.290.0090.04812.45
5.4.280.0040.04712.32
5.4.270.0080.03912.32
5.4.260.0060.03912.32
5.4.250.0100.03412.32
5.4.240.0050.03712.32
5.4.230.0080.03612.31
5.4.220.0090.03812.31
5.4.210.0070.03812.31
5.4.200.0050.04512.32
5.4.190.0060.03712.31
5.4.180.0050.03812.30
5.4.170.0040.04012.32
5.4.160.0070.03912.32
5.4.150.0080.03812.31
5.4.140.0090.03812.00
5.4.130.0090.03711.98
5.4.120.0090.03511.94
5.4.110.0080.03611.94
5.4.100.0040.04211.94
5.4.90.0070.03811.94
5.4.80.0050.04111.94
5.4.70.0090.03411.93
5.4.60.0060.03511.93
5.4.50.0130.03011.93
5.4.40.0090.04811.92
5.4.30.0050.05511.92
5.4.20.0090.04711.92
5.4.10.0060.03511.92
5.4.00.0110.03511.41
5.3.290.0070.04012.80
5.3.280.0110.03512.71
5.3.270.0100.04312.73
5.3.260.0050.04112.72
5.3.250.0090.04212.72
5.3.240.0060.05112.72
5.3.230.0060.03812.71
5.3.220.0080.03612.68
5.3.210.0070.03912.68
5.3.200.0050.04012.68
5.3.190.0100.03512.68
5.3.180.0040.03912.67
5.3.170.0050.03712.67
5.3.160.0060.03612.68
5.3.150.0070.03712.67
5.3.140.0090.03312.66
5.3.130.0050.04012.66
5.3.120.0080.03712.66
5.3.110.0060.03912.66
5.3.100.0100.03912.12
5.3.90.0070.03912.08
5.3.80.0080.04712.07
5.3.70.0080.05112.08
5.3.60.0040.05612.07
5.3.50.0120.04112.00
5.3.40.0060.04912.00
5.3.30.0090.04511.94
5.3.20.0050.03911.70
5.3.10.0100.04411.66
5.3.00.0080.04711.65

preferences:
42.64 ms | 401 KiB | 5 Q