3v4l.org

run code in 300+ PHP versions simultaneously
<?hh //strict 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.40.0040.01418.53
8.3.30.0030.01418.79
8.3.20.0040.00420.35
8.3.10.0000.00823.65
8.3.00.0030.00520.89
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.23
8.2.110.0040.00422.19
8.2.100.0100.00517.86
8.2.90.0030.00719.05
8.2.80.0000.00817.97
8.2.70.0070.00317.38
8.2.60.0050.00317.68
8.2.50.0000.00918.07
8.2.40.0110.00018.09
8.2.30.0030.00617.98
8.2.20.0040.00417.41
8.2.10.0040.00417.85
8.2.00.0060.00317.53
8.1.270.0060.00323.92
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00423.74
8.1.230.0070.00419.15
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.10
8.1.190.0040.00417.10
8.1.180.0000.00718.10
8.1.170.0030.00618.33
8.1.160.0030.00421.93
8.1.150.0040.00418.54
8.1.140.0040.00417.29
8.1.130.0030.00317.73
8.1.120.0000.00717.33
8.1.110.0040.00417.35
8.1.100.0070.00017.28
8.1.90.0070.00017.30
8.1.80.0040.00417.20
8.1.70.0040.00417.31
8.1.60.0040.00417.45
8.1.50.0030.00617.43
8.1.40.0040.00417.26
8.1.30.0000.00817.54
8.1.20.0030.00617.50
8.1.10.0040.00417.29
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0050.00317.09
8.0.260.0000.00617.22
8.0.250.0000.00716.77
8.0.240.0000.00716.88
8.0.230.0030.00316.84
8.0.220.0000.00716.62
8.0.210.0030.00316.68
8.0.200.0060.00016.83
8.0.190.0030.00316.71
8.0.180.0040.00416.68
8.0.170.0040.00416.68
8.0.160.0050.00216.72
8.0.150.0050.00316.67
8.0.140.0000.00916.68
8.0.130.0030.00313.39
8.0.120.0030.00616.59
8.0.110.0000.00816.60
8.0.100.0040.00416.62
8.0.90.0070.00016.69
8.0.80.0080.00616.77
8.0.70.0080.00016.55
8.0.60.0000.00716.79
8.0.50.0000.00716.69
8.0.30.0080.01416.82
8.0.20.0090.01017.40
8.0.10.0080.00016.81
8.0.00.0080.01016.47
7.4.330.0050.00015.19
7.4.320.0040.00416.50
7.4.300.0060.00016.38
7.4.290.0030.00316.37
7.4.280.0000.00916.43
7.4.270.0030.00316.34
7.4.260.0000.00616.24
7.4.250.0050.00216.43
7.4.240.0020.00516.40
7.4.230.0070.00016.54
7.4.220.0160.00716.40
7.4.210.0070.01316.37
7.4.200.0070.00016.25
7.4.160.0090.00616.39
7.4.150.0110.01217.40
7.4.140.0120.00917.86
7.4.130.0100.00716.50
7.4.120.0140.00316.39
7.4.110.0120.00316.33
7.4.100.0120.00916.57
7.4.90.0100.00716.43
7.4.80.0070.01019.39
7.4.70.0040.01216.28
7.4.60.0100.01016.36
7.4.50.0000.00816.42
7.4.40.0060.01116.46
7.4.30.0060.00916.52
7.3.330.0000.00613.11
7.3.320.0050.00013.22
7.3.310.0070.00016.26
7.3.300.0060.00016.15
7.3.290.0030.01016.21
7.3.280.0110.00816.11
7.3.270.0120.00617.40
7.3.260.0140.00716.09
7.3.250.0110.00916.22
7.3.240.0090.01016.14
7.3.230.0100.00716.39
7.3.210.0140.00316.32
7.3.200.0120.00619.39
7.3.190.0080.01516.11
7.3.180.0120.00316.15
7.3.170.0110.00616.42
7.3.160.0090.00916.17
7.2.330.0100.01016.62
7.2.320.0070.01116.55
7.2.310.0060.01716.40
7.2.300.0130.00316.24
7.2.290.0040.01216.22
5.5.120.0270.07320.28
5.5.110.0230.06720.23
5.5.100.0230.05320.11
5.5.90.0230.03720.10
5.5.80.0130.05020.12
5.5.70.0200.07720.06
5.5.60.0430.05020.09
5.5.50.0230.06719.98
5.5.40.0130.08719.99
5.5.30.0230.06320.02
5.5.20.0270.03320.02
5.5.10.0330.06020.06
5.5.00.0300.06319.95
5.4.280.0230.07719.12
5.4.270.0170.05019.04
5.4.260.0370.08319.08
5.4.250.0200.03719.17
5.4.240.0170.04719.00
5.4.230.0300.06719.20
5.4.220.0230.07318.91
5.4.210.0270.06718.91
5.4.200.0300.07019.01
5.4.190.0300.06719.00
5.4.180.0400.05719.00
5.4.170.0300.07019.03
5.4.160.0330.06718.91
5.4.150.0230.07719.03
5.4.140.0300.06716.35
5.4.130.0300.04316.47
5.4.120.0270.05316.41
5.4.110.0200.03716.38
5.4.100.0200.03716.25
5.4.90.0370.05716.40
5.4.80.0270.05716.46
5.4.70.0330.06316.45
5.4.60.0300.06316.40
5.4.50.0270.06016.29
5.4.40.0230.05316.46
5.4.30.0230.07016.45
5.4.20.0230.07316.43
5.4.10.0370.06016.38
5.4.00.0230.06315.91
5.3.290.0330.06714.62
5.3.280.0200.04314.39
5.3.270.0370.06714.45
5.3.260.0270.07014.60
5.3.250.0270.06714.55
5.3.240.0270.06714.57
5.3.230.0270.06714.52
5.3.220.0270.07014.51
5.3.210.0300.06714.50
5.3.200.0200.04314.52
5.3.190.0230.07014.54
5.3.180.0270.05014.47
5.3.170.0200.05014.48
5.3.160.0200.06714.50
5.3.150.0330.06314.45
5.3.140.0200.05714.48
5.3.130.0270.07014.48
5.3.120.0270.06714.45
5.3.110.0230.05714.48
5.3.100.0300.06013.97
5.3.90.0270.06013.80
5.3.80.0270.07013.95
5.3.70.0270.06013.95
5.3.60.0200.07013.97
5.3.50.0270.06013.88
5.3.40.0270.07713.80
5.3.30.0200.05313.87
5.3.20.0270.06013.62
5.3.10.0230.07013.62
5.3.00.0200.04013.62

preferences:
37.7 ms | 400 KiB | 5 Q