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) : String { 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.0070.00716.58
8.3.60.0120.00318.34
8.3.50.0100.00921.98
8.3.40.0090.00618.72
8.3.30.0100.00320.04
8.3.20.0040.00420.12
8.3.10.0050.00322.09
8.3.00.0070.00022.37
8.2.180.0100.01316.38
8.2.170.0070.00722.96
8.2.160.0080.00522.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00926.16
8.2.120.0080.00019.21
8.2.110.0030.00722.30
8.2.100.0070.00417.59
8.2.90.0030.00619.27
8.2.80.0000.00719.42
8.2.70.0050.00317.63
8.2.60.0030.00517.80
8.2.50.0050.00318.07
8.2.40.0030.00618.09
8.2.30.0070.00017.92
8.2.20.0030.00617.51
8.2.10.0030.00617.50
8.2.00.0030.00617.57
8.1.280.0070.01125.92
8.1.270.0050.00324.66
8.1.260.0030.00626.35
8.1.250.0140.00028.09
8.1.240.0030.00623.80
8.1.230.0040.00719.07
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0040.00417.10
8.1.190.0040.00417.40
8.1.180.0040.00418.76
8.1.170.0030.00618.56
8.1.160.0070.00022.13
8.1.150.0070.00018.50
8.1.140.0030.00617.35
8.1.130.0080.00317.75
8.1.120.0000.00717.34
8.1.110.0050.00317.23
8.1.100.0000.00717.25
8.1.90.0080.00017.39
8.1.80.0070.00017.36
8.1.70.0000.00717.28
8.1.60.0060.00317.37
8.1.50.0000.00817.43
8.1.40.0000.00717.25
8.1.30.0000.00717.38
8.1.20.0040.00417.57
8.1.10.0070.00017.43
8.1.00.0040.00417.31
8.0.300.0040.00418.77
8.0.290.0030.00317.05
8.0.280.0000.00718.29
8.0.270.0070.00017.22
8.0.260.0070.00016.73
8.0.250.0040.00316.73
8.0.240.0070.00416.82
8.0.230.0040.00416.68
8.0.220.0060.00316.72
8.0.210.0070.00016.71
8.0.200.0000.00616.80
8.0.190.0020.00516.70
8.0.180.0060.00316.64
8.0.170.0000.00716.68
8.0.160.0000.00716.77
8.0.150.0030.00316.68
8.0.140.0040.00416.74
8.0.130.0030.00313.34
8.0.120.0000.00816.75
8.0.110.0000.00716.79
8.0.100.0030.00316.71
8.0.90.0080.00016.62
8.0.80.0080.00816.73
8.0.70.0030.00516.73
8.0.60.0040.00416.55
8.0.50.0040.00416.77
8.0.30.0090.01117.04
8.0.20.0180.00717.40
8.0.10.0040.00416.94
8.0.00.0120.00516.58
7.4.330.0060.00015.00
7.4.320.0000.00616.25
7.4.300.0070.00016.38
7.4.290.0000.00716.41
7.4.280.0040.00416.46
7.4.270.0030.00616.32
7.4.260.0090.00016.47
7.4.250.0040.00416.23
7.4.240.0040.00316.33
7.4.230.0030.00316.52
7.4.220.0120.00616.35
7.4.210.0100.00516.35
7.4.200.0040.00416.24
7.4.190.0030.00316.53
7.4.160.0160.00016.35
7.4.150.0040.01517.40
7.4.140.0110.00617.86
7.4.130.0090.00816.42
7.4.120.0090.00816.30
7.4.110.0110.00816.54
7.4.100.0110.00616.40
7.4.90.0090.00916.50
7.4.80.0090.00919.39
7.4.70.0080.01116.27
7.4.60.0110.00816.39
7.4.50.0000.00916.31
7.4.40.0060.01022.77
7.4.30.0100.00616.14
7.3.330.0030.00313.20
7.3.320.0000.00513.13
7.3.310.0040.00416.21
7.3.300.0050.00216.13
7.3.290.0080.00816.17
7.3.280.0090.00716.10
7.3.270.0000.01617.40
7.3.260.0110.00516.27
7.3.250.0100.00716.40
7.3.240.0060.01216.52
7.3.230.0130.00316.39
7.3.210.0090.00916.10
7.3.200.0030.01319.39
7.3.190.0150.00616.17
7.3.180.0060.00916.38
7.3.170.0130.00316.50
7.3.160.0120.00316.36
7.2.330.0070.01016.63
7.2.320.0060.01116.53
7.2.310.0060.01116.70
7.2.300.0140.00316.57
7.2.290.0100.00716.31
5.4.320.0090.03512.45
5.4.310.0080.03712.45
5.4.300.0050.03812.45
5.4.290.0110.04912.45
5.4.280.0050.04012.32
5.4.270.0070.03712.32
5.4.260.0080.03712.32
5.4.250.0050.04012.32
5.4.240.0070.03612.32
5.4.230.0070.03712.31
5.4.220.0030.04012.31
5.4.210.0070.03512.31
5.4.200.0080.03712.31
5.4.190.0060.03812.30
5.4.180.0080.04312.30
5.4.170.0080.04012.32
5.4.160.0080.03512.31
5.4.150.0100.03412.31
5.4.140.0100.03712.00
5.4.130.0070.03611.98
5.4.120.0080.04411.94
5.4.110.0130.04111.94
5.4.100.0040.04211.94
5.4.90.0100.04711.93
5.4.80.0060.04011.94
5.4.70.0070.03711.93
5.4.60.0040.04211.93
5.4.50.0080.04211.93
5.4.40.0080.03611.92
5.4.30.0110.04011.92
5.4.20.0090.04211.92
5.4.10.0070.03611.92
5.4.00.0050.03911.41
5.3.290.0080.03712.80
5.3.280.0060.04012.71
5.3.270.0050.04412.73
5.3.260.0120.04012.72
5.3.250.0090.04512.71
5.3.240.0080.04912.72
5.3.230.0120.04312.71
5.3.220.0050.05312.68
5.3.210.0090.04912.68
5.3.200.0070.04712.68
5.3.190.0080.04812.68
5.3.180.0060.05012.68
5.3.170.0040.04812.67
5.3.160.0100.05112.68
5.3.150.0070.05312.68
5.3.140.0120.04412.66
5.3.130.0120.04212.65
5.3.120.0200.03812.66
5.3.110.0110.05012.65
5.3.100.0080.04512.12
5.3.90.0150.03012.09
5.3.80.0090.03312.08
5.3.70.0060.03612.08
5.3.60.0100.03412.07
5.3.50.0040.03812.00
5.3.40.0070.03512.00
5.3.30.0100.03111.94
5.3.20.0030.03711.70
5.3.10.0080.03311.67
5.3.00.0040.03711.65

preferences:
39.98 ms | 401 KiB | 5 Q