3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class A {} class B {} function foo(): A { try { return new B; } finally { echo "finally\n"; } } var_dump( foo() );

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.0110.00318.43
8.3.50.0140.00521.04
8.3.40.0140.00718.70
8.3.30.0070.00719.03
8.3.20.0060.00320.21
8.3.10.0090.00020.53
8.3.00.0000.00819.13
8.2.180.0060.00916.32
8.2.170.0030.01022.96
8.2.160.0130.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.11
8.2.110.0030.00620.57
8.2.100.0040.00718.09
8.2.90.0040.00419.04
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0060.00317.80
8.2.50.0050.00318.07
8.2.40.0050.00218.03
8.2.30.0080.00317.79
8.2.20.0000.00817.53
8.2.10.0070.00017.96
8.2.00.0050.00317.41
8.1.280.0040.01125.92
8.1.270.0030.00623.82
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.13
8.1.230.0070.00419.21
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0040.00718.42
8.1.160.0050.00321.93
8.1.150.0000.00818.71
8.1.140.0000.00717.34
8.1.130.0070.00017.68
8.1.120.0040.00417.30
8.1.110.0040.00417.20
8.1.100.0000.00717.29
8.1.90.0000.00717.35
8.1.80.0000.00717.22
8.1.70.0000.00817.19
8.1.60.0030.00617.44
8.1.50.0030.00517.27
8.1.40.0040.00417.25
8.1.30.0030.00617.38
8.1.20.0040.00417.48
8.1.10.0030.00617.44
8.1.00.0050.00217.39
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0050.00318.37
8.0.270.0040.00417.14
8.0.260.0030.00317.05
8.0.250.0000.00716.71
8.0.240.0030.00316.73
8.0.230.0070.00016.86
8.0.220.0040.00416.72
8.0.210.0050.00216.80
8.0.200.0070.00016.71
8.0.190.0040.00416.79
8.0.180.0000.00816.81
8.0.170.0030.00616.79
8.0.160.0000.00716.80
8.0.150.0030.00316.67
8.0.140.0070.00016.77
8.0.130.0070.00013.41
8.0.120.0060.00316.78
8.0.110.0000.00816.62
8.0.100.0000.00716.72
8.0.90.0000.00816.62
8.0.80.0040.01116.64
8.0.70.0040.00416.74
8.0.60.0050.00216.73
8.0.50.0080.00016.75
8.0.30.0150.00616.86
8.0.20.0160.00517.40
8.0.10.0040.00416.92
8.0.00.0080.00916.64
7.4.330.0020.00215.20
7.4.320.0000.00616.44
7.4.300.0030.00316.47
7.4.290.0040.00416.43
7.4.280.0000.00916.37
7.4.270.0030.00316.45
7.4.260.0080.00016.35
7.4.250.0040.00416.45
7.4.240.0030.00316.36
7.4.230.0050.00216.55
7.4.220.0000.02416.23
7.4.210.0150.00616.33
7.4.200.0030.00316.36
7.4.160.0060.01216.30
7.4.150.0060.01217.40
7.4.140.0140.00617.86
7.4.130.0090.01016.27
7.4.120.0120.00716.32
7.4.110.0070.01016.48
7.4.100.0090.00916.19
7.4.90.0040.01216.34
7.4.80.0090.00819.39
7.4.70.0140.00316.57
7.4.60.0090.00616.39
7.4.50.0040.00416.09
7.4.40.0060.01116.25
7.4.30.0060.00916.20
7.3.330.0000.00512.96
7.3.320.0000.00513.19
7.3.310.0000.00715.92
7.3.300.0030.00316.16
7.3.290.0060.00716.12
7.3.280.0030.01316.10
7.3.270.0110.00717.40
7.3.260.0090.00916.17
7.3.250.0090.00916.32
7.3.240.0090.00916.38
7.3.230.0110.00916.39
7.3.210.0150.00016.07
7.3.200.0080.01419.39
7.3.190.0070.01016.21
7.3.180.0100.00716.41
7.3.170.0100.00616.38
7.3.160.0080.00816.38
7.2.330.0120.00616.54
7.2.320.0090.00916.47
7.2.310.0080.00816.57
7.2.300.0000.01616.38
7.2.290.0180.00316.54
5.4.340.0230.05019.22
5.4.320.0370.05018.87
5.4.310.0230.05319.08
5.4.300.0300.03719.05
5.4.290.0300.06719.24
5.4.280.0330.06718.85
5.4.270.0270.07319.18
5.4.260.0330.06718.97
5.4.250.0270.06319.23
5.4.240.0270.04319.23
5.4.230.0270.06719.08
5.4.220.0300.07719.21
5.4.210.0270.03719.17
5.4.200.0330.05318.94
5.4.190.0300.05719.08
5.4.180.0370.07018.98
5.4.170.0270.07318.98
5.4.160.0300.06019.14
5.4.150.0270.05019.20
5.4.140.0370.05316.40
5.4.130.0230.03716.53
5.4.120.0230.04716.45
5.4.110.0300.06716.45
5.4.100.0330.05016.40
5.4.90.0330.04016.40
5.4.80.0270.06716.52
5.4.70.0400.05316.18
5.4.60.0270.03316.18
5.4.50.0370.06016.54
5.4.40.0300.06316.54
5.4.30.0270.06716.37
5.4.20.0270.05016.42
5.4.10.0200.05016.35
5.4.00.0270.05315.95

preferences:
38.44 ms | 401 KiB | 5 Q