3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { try{ return 1; }catch(\Exception $e){ }finally{ echo 5; } } echo(a());

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.4.20.0170.00317.65
8.4.10.0030.00617.74
8.3.150.0100.01016.54
8.3.140.0080.00017.36
8.3.130.0190.00318.37
8.3.120.0070.00318.92
8.3.110.0100.01020.94
8.3.100.0030.00524.06
8.3.90.0050.00326.77
8.3.80.0060.00316.50
8.3.70.0110.00716.58
8.3.60.0070.00718.31
8.3.50.0110.00721.92
8.3.40.0000.01418.80
8.3.30.0080.00818.57
8.3.20.0050.00220.33
8.3.10.0040.00420.54
8.3.00.0080.00020.56
8.2.270.0060.00918.92
8.2.260.0040.00416.26
8.2.250.0080.00018.21
8.2.240.0060.00317.14
8.2.230.0060.01022.58
8.2.220.0030.00537.54
8.2.210.0070.01126.77
8.2.200.0030.00616.63
8.2.190.0040.01116.58
8.2.180.0150.00416.38
8.2.170.0120.00622.96
8.2.160.0070.00720.16
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0000.00920.46
8.2.100.0080.00417.84
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00617.91
8.2.50.0080.00018.09
8.2.40.0030.00622.27
8.2.30.0000.00719.43
8.2.20.0040.00417.59
8.2.10.0030.00618.02
8.2.00.0040.00417.89
8.1.310.0000.00818.15
8.1.300.0080.00017.79
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0040.01124.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0070.00417.52
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0090.00017.10
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0000.00720.75
8.1.150.0070.00018.78
8.1.140.0040.00419.35
8.1.130.0030.00517.57
8.1.120.0000.00817.33
8.1.110.0040.00417.37
8.1.100.0000.00817.39
8.1.90.0000.00717.31
8.1.80.0030.00517.23
8.1.70.0000.00717.30
8.1.60.0090.00017.41
8.1.50.0040.00417.53
8.1.40.0080.00017.47
8.1.30.0000.00817.53
8.1.20.0070.00017.63
8.1.10.0050.00317.50
8.1.00.0000.00817.45
8.0.300.0000.00918.77
8.0.290.0090.00016.63
8.0.280.0030.00318.30
8.0.270.0070.00017.24
8.0.260.0030.00317.10
8.0.250.0030.00316.80
8.0.240.0040.00416.92
8.0.230.0040.00416.81
8.0.220.0050.00216.70
8.0.210.0040.00416.74
8.0.200.0000.00616.89
8.0.190.0000.00816.74
8.0.180.0040.00716.78
8.0.170.0000.00716.78
8.0.160.0000.01116.68
8.0.150.0000.00716.77
8.0.140.0040.00416.63
8.0.130.0000.00613.15
8.0.120.0000.00816.60
8.0.110.0040.00416.68
8.0.100.0000.00716.74
8.0.90.0040.00416.79
8.0.80.0070.01116.77
8.0.70.0000.00716.68
8.0.60.0050.00316.88
8.0.50.0000.00716.83
8.0.30.0140.00617.13
8.0.20.0130.01017.40
8.0.10.0000.00716.76
8.0.00.0120.00716.63
7.4.330.0000.00515.11
7.4.320.0060.00016.30
7.4.300.0000.00716.39
7.4.290.0030.00316.39
7.4.280.0070.00016.46
7.4.270.0030.00316.34
7.4.260.0030.00316.32
7.4.250.0000.00816.45
7.4.240.0030.00316.57
7.4.230.0000.00716.46
7.4.220.0000.01916.56
7.4.210.0080.00916.57
7.4.200.0000.00716.54
7.4.160.0160.00616.46
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0080.01016.43
7.4.120.0080.01016.45
7.4.110.0100.00716.26
7.4.100.0130.01216.43
7.4.90.0100.00716.54
7.4.80.0100.00719.39
7.4.70.0170.00016.42
7.4.60.0110.00616.45
7.4.50.0130.00316.34
7.4.40.0000.01516.49
7.4.30.0040.01116.52
7.4.00.0060.01214.80
7.3.330.0070.00013.10
7.3.320.0000.00513.24
7.3.310.0000.00716.20
7.3.300.0060.00016.26
7.3.290.0040.00416.14
7.3.280.0100.00816.18
7.3.270.0120.00917.40
7.3.260.0090.00816.67
7.3.250.0110.00616.30
7.3.240.0100.00816.42
7.3.230.0100.00616.39
7.3.210.0060.01116.32
7.3.200.0060.01016.18
7.3.190.0050.01016.39
7.3.180.0060.00916.43
7.3.170.0090.01216.32
7.3.160.0120.00616.25
7.2.330.0130.00616.63
7.2.320.0120.01316.54
7.2.310.0220.00016.43
7.2.300.0150.00616.59
7.2.290.0080.00916.58
7.2.60.0100.00316.86
7.2.00.0030.01018.90
7.1.200.0030.00715.57
7.1.100.0820.00316.09
7.1.70.0070.00716.92
7.1.60.0070.01419.27
7.1.00.0000.08022.35
7.0.200.0080.00816.39
7.0.100.0100.07719.96
7.0.90.0170.07319.93
7.0.80.0100.07719.90
7.0.70.0030.04719.85
7.0.60.0200.07019.94
7.0.50.0070.06720.28
7.0.40.0130.08020.15
7.0.30.0000.08720.08
7.0.20.0030.08720.11
7.0.10.0200.07320.14
7.0.00.0000.05720.08
5.6.280.0030.06721.07
5.6.250.0170.07720.64
5.6.240.0100.05020.58
5.6.230.0130.08020.75
5.6.220.0030.08320.65
5.6.210.0100.05720.69
5.6.200.0070.05021.03
5.6.190.0100.05021.00
5.6.180.0030.08321.19
5.6.170.0130.07721.05
5.6.160.0170.06720.95
5.6.150.0130.07020.96
5.6.140.0030.08021.01
5.6.130.0100.08321.11
5.6.120.0130.07321.02
5.6.110.0070.08321.13
5.6.100.0030.05320.93
5.6.90.0070.07721.00
5.6.80.0170.07320.30
5.6.70.0130.07720.39
5.6.60.0070.04720.46
5.6.50.0130.06320.50
5.6.40.0030.08320.47
5.6.30.0070.04720.45
5.6.20.0170.07320.37
5.6.10.0100.07720.50
5.6.00.0170.07320.29
5.5.380.0130.07020.36
5.5.370.0130.07020.57
5.5.360.0100.08320.44
5.5.350.0130.07020.38
5.5.340.0170.07720.93
5.5.330.0030.08720.92
5.5.320.0070.08020.89
5.5.310.0070.06320.64
5.5.300.0070.08720.77
5.5.290.0030.08320.76
5.5.280.0070.08720.82
5.5.270.0100.08720.73
5.5.260.0100.08020.63
5.5.250.0100.05320.62
5.5.240.0030.07720.16
5.5.230.0170.07020.24
5.5.220.0030.05020.01
5.5.210.0100.07020.13
5.5.200.0200.07320.23
5.5.190.0100.07720.13
5.5.180.0130.04320.23
5.5.160.0270.05320.21
5.5.150.0070.07720.24
5.5.140.0070.07720.13
5.5.130.0170.06720.06
5.5.120.0100.07720.24
5.5.110.0030.07320.26
5.5.100.0100.07320.07
5.5.90.0100.07720.10
5.5.80.0070.05319.95
5.5.70.0030.07720.11
5.5.60.0030.06720.02
5.5.50.0200.06720.16
5.5.40.0130.07020.16
5.5.30.0030.08320.05
5.5.20.0100.04320.14
5.5.10.0200.03319.98
5.5.00.0000.08319.95

preferences:
123.75 ms | 403 KiB | 5 Q