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) : Baz { 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.0060.01518.17
8.3.50.0090.00922.05
8.3.40.0120.00318.77
8.3.30.0030.01020.25
8.3.20.0110.00720.21
8.3.10.0080.00021.95
8.3.00.0080.00622.41
8.2.180.0090.01216.50
8.2.170.0140.00022.96
8.2.160.0030.01020.57
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00219.64
8.2.110.0060.00321.95
8.2.100.0120.00017.70
8.2.90.0070.00019.23
8.2.80.0060.00319.31
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00718.09
8.2.30.0040.00417.91
8.2.20.0090.00017.54
8.2.10.0000.00717.46
8.2.00.0000.01117.48
8.1.280.0140.00325.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0060.00619.00
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.11
8.1.190.0000.00817.38
8.1.180.0040.00418.89
8.1.170.0040.00418.46
8.1.160.0030.00322.11
8.1.150.0040.00418.49
8.1.140.0050.00217.27
8.1.130.0070.00017.73
8.1.120.0030.00317.20
8.1.110.0000.00717.23
8.1.100.0050.00217.20
8.1.90.0000.00717.31
8.1.80.0040.00417.20
8.1.70.0000.00717.29
8.1.60.0000.01217.39
8.1.50.0080.00017.28
8.1.40.0040.00417.42
8.1.30.0040.00417.53
8.1.20.0040.00417.53
8.1.10.0040.00417.43
8.1.00.0040.00417.27
8.0.300.0000.00718.77
8.0.290.0050.00217.18
8.0.280.0050.00318.44
8.0.270.0040.00417.22
8.0.260.0060.00016.59
8.0.250.0000.00716.81
8.0.240.0000.00716.72
8.0.230.0030.00316.79
8.0.220.0000.00716.75
8.0.210.0000.00716.73
8.0.200.0040.00416.77
8.0.190.0000.00816.84
8.0.180.0000.00716.80
8.0.170.0030.00316.81
8.0.160.0030.00316.70
8.0.150.0000.00716.71
8.0.140.0000.00716.71
8.0.130.0060.00013.44
8.0.120.0000.00716.72
8.0.110.0000.00716.58
8.0.100.0070.00016.71
8.0.90.0000.00716.74
8.0.80.0110.00416.69
8.0.70.0070.00016.61
8.0.60.0040.00416.57
8.0.50.0040.00416.72
8.0.30.0050.01317.04
8.0.20.0140.00817.40
8.0.10.0070.00016.69
8.0.00.0150.00516.77
7.4.330.0030.00315.00
7.4.320.0060.00016.30
7.4.300.0040.00416.46
7.4.290.0030.00316.46
7.4.280.0000.00616.34
7.4.270.0000.00716.38
7.4.260.0030.00716.34
7.4.250.0040.00416.34
7.4.240.0020.00516.40
7.4.230.0030.00316.49
7.4.220.0030.01616.46
7.4.210.0060.00816.37
7.4.200.0000.00716.46
7.4.190.0030.00316.62
7.4.160.0080.00816.37
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0070.00916.26
7.4.120.0120.00516.40
7.4.110.0080.01116.27
7.4.100.0170.00316.36
7.4.90.0090.00916.35
7.4.80.0140.00719.39
7.4.70.0090.00616.26
7.4.60.0160.00016.25
7.4.50.0030.00516.21
7.4.40.0120.00322.77
7.4.30.0120.00316.38
7.3.330.0000.00513.23
7.3.320.0050.00013.23
7.3.310.0000.00816.18
7.3.300.0030.00315.96
7.3.290.0030.01116.10
7.3.280.0100.00516.13
7.3.270.0030.01217.40
7.3.260.0130.00316.36
7.3.250.0070.01016.27
7.3.240.0120.00816.35
7.3.230.0100.00716.53
7.3.210.0060.01216.22
7.3.200.0120.00619.39
7.3.190.0100.00716.16
7.3.180.0070.00716.15
7.3.170.0110.00416.27
7.3.160.0140.01016.41
7.2.330.0170.00316.53
7.2.320.0110.01116.53
7.2.310.0130.00616.16
7.2.300.0030.01516.48
7.2.290.0030.01316.45
5.5.120.0110.00410.78
5.5.110.0120.00310.79
5.5.100.0000.01410.97
5.5.90.0090.00610.67
5.5.80.0000.01110.80
5.5.70.0000.00910.71
5.5.60.0050.00610.67
5.5.50.0030.00610.87
5.5.40.0050.00410.98
5.5.30.0040.00610.99
5.5.20.0090.00310.89
5.5.10.0050.00810.91
5.5.00.0060.00310.91
5.4.280.0060.00910.72
5.4.270.0120.00310.95
5.4.260.0040.00810.91
5.4.250.0170.00010.73
5.4.240.0050.00710.99
5.4.230.0030.00810.78
5.4.220.0000.01110.43
5.4.210.0070.00310.51
5.4.200.0050.00510.74
5.4.190.0000.00910.47
5.4.180.0050.00510.70
5.4.170.0060.00411.09
5.4.160.0100.00010.60
5.4.150.0110.00010.72
5.4.140.0040.00710.48
5.4.130.0000.01010.80
5.4.120.0030.00510.53
5.4.110.0040.00410.75
5.4.100.0000.01110.75
5.4.90.0000.01010.75
5.4.80.0100.00010.50
5.4.70.0090.00010.80
5.4.60.0070.00410.50
5.4.50.0060.00310.57
5.4.40.0000.00810.75
5.4.30.0090.00410.86
5.4.20.0060.00210.80
5.4.10.0080.00010.51
5.4.00.0000.01010.82
5.3.280.0040.00410.05
5.3.270.0000.01110.34
5.3.260.0040.00710.26
5.3.250.0000.01010.05
5.3.240.0040.00410.05
5.3.230.0080.00010.23
5.3.220.0000.01010.06
5.3.210.0040.00410.11
5.3.200.0030.00510.09
5.3.190.0060.00210.10
5.3.180.0000.00910.23
5.3.170.0000.00910.28
5.3.160.0000.01010.25
5.3.150.0080.00010.28
5.3.140.0000.00810.17
5.3.130.0060.00310.19
5.3.120.0050.00510.23
5.3.110.0090.00010.18
5.3.100.0050.00310.20
5.3.90.0000.01010.27
5.3.80.0000.00910.16
5.3.70.0000.0089.93
5.3.60.0040.00410.25
5.3.50.0000.01010.07
5.3.40.0070.00310.02
5.3.30.0080.00210.11
5.3.20.0060.00310.08
5.3.10.0030.0089.96
5.3.00.0000.0119.91

preferences:
31.66 ms | 401 KiB | 5 Q