3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class A {} class B {} function foo(): A { try { return new B; } finally {} } 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.30
8.3.50.0100.01321.15
8.3.40.0070.00718.75
8.3.30.0100.00319.01
8.3.20.0040.00420.27
8.3.10.0080.00020.23
8.3.00.0040.00419.26
8.2.180.0140.00318.05
8.2.170.0110.00422.96
8.2.160.0100.00319.04
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00722.29
8.2.110.0120.00920.40
8.2.100.0040.00717.91
8.2.90.0040.00418.95
8.2.80.0050.00317.97
8.2.70.0050.00317.38
8.2.60.0040.00417.91
8.2.50.0000.00918.07
8.2.40.0080.00018.03
8.2.30.0070.00017.93
8.2.20.0030.00517.58
8.2.10.0000.00817.79
8.2.00.0030.00517.46
8.1.280.0140.00725.92
8.1.270.0060.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.01
8.1.230.0060.00618.75
8.1.220.0060.00317.74
8.1.210.0070.00018.77
8.1.200.0090.00017.23
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00818.32
8.1.160.0000.00721.85
8.1.150.0000.00718.75
8.1.140.0060.00317.30
8.1.130.0000.00717.76
8.1.120.0050.00217.30
8.1.110.0000.00717.35
8.1.100.0000.00717.37
8.1.90.0030.00317.30
8.1.80.0000.00817.26
8.1.70.0000.00717.26
8.1.60.0090.00017.39
8.1.50.0080.00017.33
8.1.40.0100.00017.34
8.1.30.0050.00317.38
8.1.20.0040.00417.59
8.1.10.0000.00717.44
8.1.00.0070.00017.42
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0040.00418.29
8.0.270.0000.00717.07
8.0.260.0060.00017.18
8.0.250.0000.00716.77
8.0.240.0000.00616.78
8.0.230.0000.00716.75
8.0.220.0040.00416.64
8.0.210.0060.00016.65
8.0.200.0050.00416.68
8.0.190.0000.00816.80
8.0.180.0000.00716.71
8.0.170.0000.00816.82
8.0.160.0000.00716.75
8.0.150.0040.00416.58
8.0.140.0070.00016.53
8.0.130.0030.00313.38
8.0.120.0000.00916.70
8.0.110.0070.00016.75
8.0.100.0070.00016.74
8.0.90.0020.00516.64
8.0.80.0000.01516.82
8.0.70.0000.00716.76
8.0.60.0080.00016.80
8.0.50.0040.00416.82
8.0.30.0060.01216.88
8.0.20.0110.00817.40
8.0.10.0070.00016.82
8.0.00.0040.01316.88
7.4.330.0050.00015.03
7.4.320.0040.00416.39
7.4.300.0040.00416.28
7.4.290.0040.00416.47
7.4.280.0040.00416.43
7.4.270.0030.00316.37
7.4.260.0070.00016.34
7.4.250.0040.00416.32
7.4.240.0020.00516.34
7.4.230.0000.00716.46
7.4.220.0070.02016.52
7.4.210.0040.01116.26
7.4.200.0050.00316.39
7.4.160.0070.01416.34
7.4.150.0150.00917.40
7.4.140.0120.00817.86
7.4.130.0110.00616.40
7.4.120.0060.01016.30
7.4.110.0070.01016.49
7.4.100.0070.01016.14
7.4.90.0110.00516.34
7.4.80.0030.01319.39
7.4.70.0090.01216.45
7.4.60.0090.00916.32
7.4.50.0000.00816.44
7.4.40.0060.00916.40
7.4.30.0100.00716.35
7.3.330.0030.00313.14
7.3.320.0000.00513.10
7.3.310.0030.00315.97
7.3.300.0060.00016.09
7.3.290.0150.00016.18
7.3.280.0080.00916.14
7.3.270.0120.00917.40
7.3.260.0080.00816.08
7.3.250.0060.01316.30
7.3.240.0060.01516.41
7.3.230.0120.00616.39
7.3.210.0030.01316.36
7.3.200.0110.00919.39
7.3.190.0060.01516.21
7.3.180.0070.00716.34
7.3.170.0060.01216.27
7.3.160.0060.01016.32
7.2.330.0070.01016.36
7.2.320.0030.01316.18
7.2.310.0130.01216.34
7.2.300.0080.00816.29
7.2.290.0100.00716.49
5.4.340.0600.00019.07
5.4.320.0060.03812.45
5.4.310.0120.04012.45
5.4.300.0060.04112.45
5.4.290.0090.03512.45
5.4.280.0070.03312.34
5.4.270.0060.03812.35
5.4.260.0070.03812.35
5.4.250.0050.03812.35
5.4.240.0050.03712.35
5.4.230.0050.03912.34
5.4.220.0040.03912.34
5.4.210.0040.03712.34
5.4.200.0080.03512.34
5.4.190.0040.03812.33
5.4.180.0090.03212.33
5.4.170.0060.04112.34
5.4.160.0060.04312.34
5.4.150.0090.03812.34
5.4.140.0060.03812.02
5.4.130.0070.03612.01
5.4.120.0050.03611.96
5.4.110.0040.03811.96
5.4.100.0070.04011.96
5.4.90.0060.03711.96
5.4.80.0050.03711.96
5.4.70.0030.03811.96
5.4.60.0090.03811.96
5.4.50.0040.03711.96
5.4.40.0070.03611.95
5.4.30.0040.03711.95
5.4.20.0060.03611.95
5.4.10.0060.03611.95
5.4.00.0080.03311.43

preferences:
41.6 ms | 401 KiB | 5 Q