3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Baz { } interface Foo { public function foo(String $foo) : Baz; } 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.0130.00618.43
8.3.50.0090.00821.92
8.3.40.0060.01318.54
8.3.30.0100.00320.11
8.3.20.0070.00020.09
8.3.10.0110.00722.05
8.3.00.0040.00422.45
8.2.180.0120.00918.29
8.2.170.0100.01022.96
8.2.160.0150.00622.16
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0150.00426.16
8.2.120.0030.00519.64
8.2.110.0000.00822.25
8.2.100.0140.00017.66
8.2.90.0070.00019.27
8.2.80.0000.00719.45
8.2.70.0080.00017.36
8.2.60.0040.00417.91
8.2.50.0060.00318.07
8.2.40.0050.00317.91
8.2.30.0000.00817.91
8.2.20.0020.00517.43
8.2.10.0050.00317.43
8.2.00.0050.00317.45
8.1.280.0100.01425.92
8.1.270.0070.00024.66
8.1.260.0070.00726.35
8.1.250.0000.00728.09
8.1.240.0100.00023.92
8.1.230.0080.00319.06
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.50
8.1.180.0060.00318.89
8.1.170.0000.00818.48
8.1.160.0070.00020.86
8.1.150.0030.00618.41
8.1.140.0000.00717.18
8.1.130.0030.00317.75
8.1.120.0040.00417.32
8.1.110.0040.00417.39
8.1.100.0040.00417.38
8.1.90.0040.00417.38
8.1.80.0000.00717.32
8.1.70.0030.00317.18
8.1.60.0030.00617.32
8.1.50.0000.00817.37
8.1.40.0030.00617.35
8.1.30.0040.00417.35
8.1.20.0040.00417.35
8.1.10.0000.00717.32
8.1.00.0070.00417.25
8.0.300.0050.00518.77
8.0.290.0030.00317.05
8.0.280.0000.00718.25
8.0.270.0030.00317.18
8.0.260.0030.00316.75
8.0.250.0000.00716.71
8.0.240.0040.00416.76
8.0.230.0000.00716.78
8.0.220.0070.00016.78
8.0.210.0030.00316.74
8.0.200.0000.00616.85
8.0.190.0080.00016.67
8.0.180.0030.00616.78
8.0.170.0040.00416.78
8.0.160.0030.00516.76
8.0.150.0000.00816.73
8.0.140.0040.00416.72
8.0.130.0050.00013.37
8.0.120.0030.00716.73
8.0.110.0030.00516.63
8.0.100.0040.00416.69
8.0.90.0000.00716.71
8.0.80.0110.00316.71
8.0.70.0070.00016.57
8.0.60.0000.00716.81
8.0.50.0070.00016.62
8.0.30.0080.01016.89
8.0.20.0110.00717.40
8.0.10.0040.00416.74
8.0.00.0090.01416.57
7.4.330.0000.00515.15
7.4.320.0000.00616.29
7.4.300.0030.00616.37
7.4.290.0040.00416.44
7.4.280.0060.00016.25
7.4.270.0050.00316.26
7.4.260.0000.00613.17
7.4.250.0050.00316.39
7.4.240.0020.00616.35
7.4.230.0030.00316.57
7.4.220.0160.01016.54
7.4.210.0080.00716.50
7.4.200.0070.00016.46
7.4.190.0070.00016.56
7.4.160.0070.01516.34
7.4.150.0080.00917.40
7.4.140.0070.01017.86
7.4.130.0050.01416.33
7.4.120.0130.00516.29
7.4.110.0130.00616.27
7.4.100.0070.01416.49
7.4.90.0080.01316.30
7.4.80.0030.01419.39
7.4.70.0080.00816.34
7.4.60.0030.01316.41
7.4.50.0000.00516.32
7.4.40.0060.00622.77
7.4.30.0030.01316.26
7.3.330.0000.00513.28
7.3.320.0000.00613.20
7.3.310.0030.00315.93
7.3.300.0030.00315.96
7.3.290.0100.00316.09
7.3.280.0070.00916.18
7.3.270.0100.00617.40
7.3.260.0090.00916.16
7.3.250.0120.01116.32
7.3.240.0060.01216.44
7.3.230.0070.01016.44
7.3.210.0070.01616.03
7.3.200.0060.01519.39
7.3.190.0070.01416.10
7.3.180.0080.00816.34
7.3.170.0150.00616.30
7.3.160.0130.01016.53
7.2.330.0060.01216.50
7.2.320.0070.01516.45
7.2.310.0160.00616.50
7.2.300.0080.00816.60
7.2.290.0160.00016.25
5.4.320.0080.03812.45
5.4.310.0080.04112.45
5.4.300.0060.03612.45
5.4.290.0050.04012.45
5.4.280.0070.03512.32
5.4.270.0040.03812.32
5.4.260.0060.04512.32
5.4.250.0040.03912.32
5.4.240.0070.03612.32
5.4.230.0070.04012.31
5.4.220.0050.04412.31
5.4.210.0070.03712.31
5.4.200.0070.03912.31
5.4.190.0040.03912.30
5.4.180.0090.03212.31
5.4.170.0070.04712.32
5.4.160.0090.03412.31
5.4.150.0080.03312.31
5.4.140.0050.03811.99
5.4.130.0050.03611.98
5.4.120.0050.03711.94
5.4.110.0040.03711.93
5.4.100.0050.04011.93
5.4.90.0050.03711.93
5.4.80.0060.03711.93
5.4.70.0090.03311.93
5.4.60.0030.03711.93
5.4.50.0080.03711.93
5.4.40.0050.03611.92
5.4.30.0050.03811.92
5.4.20.0040.03611.92
5.4.10.0060.04811.92
5.4.00.0030.04611.41
5.3.290.0090.04012.80
5.3.280.0090.03612.71
5.3.270.0060.03812.72
5.3.260.0030.04112.72
5.3.250.0060.03912.72
5.3.240.0070.04012.72
5.3.230.0090.03412.71
5.3.220.0070.03612.68
5.3.210.0040.04212.68
5.3.200.0070.03812.68
5.3.190.0060.03812.68
5.3.180.0030.03912.67
5.3.170.0050.03812.67
5.3.160.0060.04112.67
5.3.150.0120.03712.68
5.3.140.0080.03612.66
5.3.130.0060.04012.66
5.3.120.0050.04212.66
5.3.110.0050.04012.66
5.3.100.0080.03512.12
5.3.90.0060.03812.08
5.3.80.0110.03212.07
5.3.70.0060.03812.08
5.3.60.0070.04212.07
5.3.50.0110.04412.00
5.3.40.0110.03612.00
5.3.30.0060.03911.94
5.3.20.0100.03511.70
5.3.10.0050.04111.66
5.3.00.0040.04011.65

preferences:
36.47 ms | 401 KiB | 5 Q