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"; } } 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.40.0130.01018.64
8.3.30.0130.00018.89
8.3.20.0070.00020.23
8.3.10.0050.00520.28
8.3.00.0080.00019.38
8.2.170.0110.00422.96
8.2.160.0030.01020.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00621.84
8.2.110.0070.00320.47
8.2.100.0090.00319.21
8.2.90.0000.00818.92
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0050.00517.67
8.2.50.0080.00018.07
8.2.40.0050.00318.22
8.2.30.0030.00717.80
8.2.20.0080.00017.42
8.2.10.0000.00817.89
8.2.00.0000.00717.52
8.1.270.0080.00023.80
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0080.00023.82
8.1.230.0080.00319.01
8.1.220.0020.00517.74
8.1.210.0030.00618.77
8.1.200.0000.00917.23
8.1.190.0080.00016.88
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0040.00421.94
8.1.150.0040.00418.67
8.1.140.0000.00717.25
8.1.130.0030.00317.62
8.1.120.0040.00417.38
8.1.110.0000.00817.30
8.1.100.0070.00017.34
8.1.90.0000.00717.27
8.1.80.0070.00017.33
8.1.70.0070.00017.29
8.1.60.0040.00417.50
8.1.50.0040.00417.39
8.1.40.0050.00317.38
8.1.30.0000.00817.38
8.1.20.0000.00717.38
8.1.10.0080.00017.31
8.1.00.0000.00717.43
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0030.00317.19
8.0.260.0040.00417.23
8.0.250.0000.00616.75
8.0.240.0000.00716.80
8.0.230.0070.00016.75
8.0.220.0040.00416.72
8.0.210.0030.00316.71
8.0.200.0040.00416.75
8.0.190.0030.00516.83
8.0.180.0030.00516.79
8.0.170.0090.00016.82
8.0.160.0070.00016.77
8.0.150.0000.00716.63
8.0.140.0000.00816.68
8.0.130.0000.00513.45
8.0.120.0060.00316.76
8.0.110.0020.00516.73
8.0.100.0000.00716.81
8.0.90.0040.00416.80
8.0.80.0110.00416.72
8.0.70.0030.00516.82
8.0.60.0000.00816.55
8.0.50.0040.00416.79
8.0.30.0120.01017.03
8.0.20.0110.00717.40
8.0.10.0050.00316.79
8.0.00.0110.00616.70
7.4.330.0000.00515.06
7.4.320.0000.00616.36
7.4.300.0000.00816.30
7.4.290.0000.00716.43
7.4.280.0040.00416.40
7.4.270.0030.00316.38
7.4.260.0000.00716.34
7.4.250.0000.00716.23
7.4.240.0050.00216.33
7.4.230.0000.00716.46
7.4.220.0090.00916.38
7.4.210.0080.00816.34
7.4.200.0040.00416.47
7.4.160.0080.00816.57
7.4.150.0190.00317.40
7.4.140.0100.01017.86
7.4.130.0120.00816.32
7.4.120.0120.00516.36
7.4.110.0050.01116.23
7.4.100.0070.01116.45
7.4.90.0120.00316.46
7.4.80.0130.00919.39
7.4.70.0090.00916.41
7.4.60.0100.00716.25
7.4.50.0050.00316.18
7.4.40.0100.00716.33
7.4.30.0070.01016.09
7.3.330.0000.00513.31
7.3.320.0020.00213.21
7.3.310.0030.00315.98
7.3.300.0030.00316.11
7.3.290.0140.00716.15
7.3.280.0080.00816.14
7.3.270.0140.00317.40
7.3.260.0070.01116.36
7.3.250.0130.00416.26
7.3.240.0030.01316.13
7.3.230.0000.02116.39
7.3.210.0030.01716.39
7.3.200.0110.01119.39
7.3.190.0140.00716.30
7.3.180.0100.00716.16
7.3.170.0120.00316.37
7.3.160.0130.00316.31
7.2.330.0110.00716.65
7.2.320.0030.01316.41
7.2.310.0100.00716.39
7.2.300.0070.01116.56
7.2.290.0090.01316.38
5.4.340.0630.00019.06
5.4.320.0070.03712.45
5.4.310.0060.04112.45
5.4.300.0090.03512.45
5.4.290.0070.03812.45
5.4.280.0040.04112.35
5.4.270.0070.03712.35
5.4.260.0050.04712.35
5.4.250.0050.05012.35
5.4.240.0050.03812.34
5.4.230.0060.03812.34
5.4.220.0100.04912.34
5.4.210.0090.03912.34
5.4.200.0050.04312.34
5.4.190.0060.03912.33
5.4.180.0060.03912.34
5.4.170.0090.03812.34
5.4.160.0080.03512.34
5.4.150.0070.04412.34
5.4.140.0060.04912.02
5.4.130.0080.03712.01
5.4.120.0080.03311.96
5.4.110.0100.04411.97
5.4.100.0060.04511.96
5.4.90.0090.04011.96
5.4.80.0080.04311.96
5.4.70.0080.03511.96
5.4.60.0060.03711.96
5.4.50.0090.03211.96
5.4.40.0060.03511.95
5.4.30.0040.03811.95
5.4.20.0060.03511.95
5.4.10.0070.03711.95
5.4.00.0080.03711.44

preferences:
35.72 ms | 400 KiB | 5 Q