3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { echo "1\n"; throw new Exception("E1"); } finally { try { echo "2\n"; throw new Exception("E2"); } catch (\Exception $e) { echo "3\n"; } } echo "4-\n"; } catch (\Exception $e) { echo "4+".$e->getMessage()."\n"; } echo "5\n";

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.130.0040.00418.31
8.3.120.0040.01218.87
8.3.110.0130.00320.94
8.3.100.0090.00016.86
8.3.90.0090.00626.77
8.3.80.0030.00618.31
8.3.70.0090.00916.63
8.3.60.0070.00718.43
8.3.50.0090.01321.94
8.3.40.0080.00818.84
8.3.30.0070.00718.96
8.3.20.0070.00020.29
8.3.10.0060.00320.53
8.3.00.0090.00019.50
8.2.250.0030.00716.94
8.2.240.0030.00618.84
8.2.230.0040.00422.58
8.2.220.0080.00837.54
8.2.210.0110.00426.77
8.2.200.0060.00618.20
8.2.190.0070.00716.58
8.2.180.0140.00416.50
8.2.170.0070.01022.96
8.2.160.0070.01020.29
8.2.150.0020.00524.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0000.00821.04
8.2.110.0080.00020.93
8.2.100.0060.00620.49
8.2.90.0030.00619.76
8.2.80.0000.00819.25
8.2.70.0060.00318.04
8.2.60.0000.00818.05
8.2.50.0040.00418.10
8.2.40.0000.00718.33
8.2.30.0070.00019.13
8.2.20.0000.00717.67
8.2.10.0070.00018.11
8.2.00.0030.00617.66
8.1.300.0120.00619.76
8.1.290.0060.00318.88
8.1.280.0160.00625.92
8.1.270.0030.00623.84
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0050.00323.98
8.1.230.0060.00619.16
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0070.00317.35
8.1.190.0090.00017.22
8.1.180.0000.00818.10
8.1.170.0030.00718.27
8.1.160.0040.00422.04
8.1.150.0040.00418.98
8.1.140.0040.00417.39
8.1.130.0030.00317.88
8.1.120.0040.00417.46
8.1.110.0000.00717.34
8.1.100.0000.00717.41
8.1.90.0000.00817.48
8.1.80.0040.00417.42
8.1.70.0030.00317.40
8.1.60.0040.00417.59
8.1.50.0040.00417.50
8.1.40.0000.00717.51
8.1.30.0050.00317.54
8.1.20.0040.00417.60
8.1.10.0040.00417.55
8.1.00.0040.00417.55
8.0.300.0000.00819.78
8.0.290.0000.00916.72
8.0.280.0000.00718.44
8.0.270.0030.00316.75
8.0.260.0060.00017.31
8.0.250.0030.00317.02
8.0.240.0070.00016.90
8.0.230.0050.00216.94
8.0.220.0000.00717.01
8.0.210.0000.00716.94
8.0.200.0030.00316.99
8.0.190.0070.00017.02
8.0.180.0000.00717.00
8.0.170.0040.00417.00
8.0.160.0070.00016.82
8.0.150.0040.00416.87
8.0.140.0050.00316.93
8.0.130.0070.00013.38
8.0.120.0000.00716.81
8.0.110.0000.00716.84
8.0.100.0040.00416.94
8.0.90.0040.00416.85
8.0.80.0040.01716.97
8.0.70.0040.00417.01
8.0.60.0000.00716.94
8.0.50.0030.00516.86
8.0.30.0080.01117.06
8.0.20.0130.01017.40
8.0.10.0040.00417.02
8.0.00.0080.01016.95
7.4.330.0050.00015.18
7.4.320.0030.00316.47
7.4.300.0030.00316.48
7.4.290.0030.00316.49
7.4.280.0050.00516.48
7.4.270.0030.00316.55
7.4.260.0030.00316.57
7.4.250.0020.00516.53
7.4.240.0040.00416.53
7.4.230.0070.00016.68
7.4.220.0110.00716.48
7.4.210.0090.00616.67
7.4.200.0000.00716.47
7.4.160.0100.00616.48
7.4.150.0170.00317.40
7.4.140.0100.00717.86
7.4.130.0070.01016.47
7.4.120.0020.01416.50
7.4.110.0030.01216.63
7.4.100.0100.00616.57
7.4.90.0030.01316.58
7.4.80.0060.01019.39
7.4.70.0080.01116.26
7.4.60.0080.00916.27
7.4.50.0090.01216.42
7.4.40.0090.01016.39
7.4.30.0100.00816.43
7.4.20.0060.01016.55
7.4.10.0130.00516.28
7.4.00.0090.00715.44
7.3.330.0000.00613.19
7.3.320.0000.00613.11
7.3.310.0000.00716.25
7.3.300.0000.00716.25
7.3.290.0030.01016.29
7.3.280.0080.01016.21
7.3.270.0120.00917.40
7.3.260.0150.00916.61
7.3.250.0090.00916.50
7.3.240.0060.00916.29
7.3.230.0110.00716.55
7.3.210.0070.01016.40
7.3.200.0070.01016.35
7.3.190.0120.00716.33
7.3.180.0120.00816.26
7.3.170.0100.01216.35
7.3.160.0100.00816.22
7.3.150.0120.00416.26
7.3.140.0110.01016.27
7.3.130.0120.00616.37
7.3.120.0070.00915.59
7.3.110.0090.00815.59
7.3.100.0050.01315.51
7.3.90.0030.01215.56
7.3.80.0070.01015.42
7.3.70.0090.00615.50
7.3.60.0060.01015.47
7.3.50.0080.00715.55
7.3.40.0100.00815.54
7.3.30.0090.01115.50
7.3.20.0070.01016.43
7.3.10.0080.00816.35
7.3.00.0170.00615.82
7.2.330.0060.01216.60
7.2.320.0100.00716.66
7.2.310.0150.00516.55
7.2.300.0110.01016.35
7.2.290.0110.00816.49
7.2.280.0120.00416.47
7.2.270.0130.00416.38
7.2.260.0050.01416.42
7.2.250.0120.00515.64
7.2.240.0080.01015.76
7.2.230.0080.00915.74
7.2.220.0070.00715.89
7.2.210.0080.01015.79
7.2.200.0080.00915.74
7.2.190.0090.00915.65
7.2.180.0090.00815.76
7.2.170.0100.00715.70
7.2.160.0090.01216.43
7.2.150.0130.00716.45
7.2.140.0090.00916.50
7.2.130.0310.00715.63
7.2.120.0330.00815.62
7.2.110.0230.01215.62
7.2.100.0180.00815.58
7.2.90.0490.00715.66
7.2.80.0690.00815.61
7.2.70.0490.00815.69
7.2.60.0400.00715.93
7.2.50.0530.00915.70
7.2.40.0480.00615.75
7.2.30.0400.01115.75
7.2.20.0540.00915.62
7.2.10.0460.00515.68
7.2.00.0520.01115.70
7.1.330.0120.00715.55
7.1.320.0110.00915.33
7.1.310.0110.00915.53
7.1.300.0090.00715.46
7.1.290.0110.00815.60
7.1.280.0110.00615.55
7.1.270.0100.01015.45
7.1.260.0110.00715.56
7.1.250.0600.00814.50
7.1.240.0810.00714.56
7.1.230.0510.00614.54
7.1.220.0230.01214.56
7.1.210.0250.00714.60
7.1.200.0440.00814.70
7.1.190.0550.00714.52
7.1.180.0560.01114.52
7.1.170.0480.00814.53
7.1.160.0570.00814.63
7.1.150.0500.01014.63
7.1.140.0470.00614.60
7.1.130.0530.00814.48
7.1.120.0670.00714.96
7.1.110.0670.00614.92
7.1.100.0460.00914.88
7.1.90.0450.00814.89
7.1.80.0390.00714.85
7.1.70.0350.01015.11
7.1.60.1010.00918.13
7.1.50.0350.00918.08
7.1.40.0270.01017.84
7.1.30.0420.00817.92
7.1.20.0440.01117.86
7.1.10.0220.00814.84
7.1.00.0200.00814.91
7.0.330.0250.00614.33
7.0.320.0350.00714.12
7.0.310.0590.01214.28
7.0.300.0550.00814.13
7.0.290.0530.00714.27
7.0.280.0440.00914.25
7.0.270.0750.00714.20
7.0.260.0590.00814.71
7.0.250.0570.00814.55
7.0.240.0740.00714.62
7.0.230.0490.01114.57
7.0.220.0470.00714.58
7.0.210.0230.01114.34
7.0.200.0400.01114.86
7.0.190.0380.00914.82
7.0.180.0290.00614.64
7.0.170.0430.00714.60
7.0.160.0300.00814.68
7.0.150.0640.01014.67
7.0.140.0270.00714.71
7.0.130.0270.00914.70
7.0.120.0200.00814.66
7.0.110.0260.01014.59
7.0.100.0270.00814.58
7.0.90.0330.00714.64
7.0.80.0220.00814.63
7.0.70.0250.00814.59
7.0.60.0280.01114.63
7.0.50.0400.01014.58
7.0.40.0330.01014.49
7.0.30.0330.00814.49
7.0.20.0260.00814.53
7.0.10.0280.00614.37
7.0.00.0280.00914.50
5.6.400.0140.01115.76
5.6.390.0150.01415.50
5.6.380.0160.00915.07
5.6.370.0180.00614.84
5.6.360.0150.01014.96
5.6.350.0180.00514.89
5.6.340.0200.00714.82
5.6.330.0170.00714.75
5.6.320.0130.01414.93
5.6.310.0110.01215.10
5.6.300.0120.02616.95
5.6.290.0110.03017.01
5.6.280.0120.02516.95
5.6.270.0090.02916.91
5.6.260.0120.02816.86
5.6.250.0140.02316.88
5.6.240.0140.02316.87
5.6.230.0160.02316.85
5.6.220.0180.02416.86
5.6.210.0110.02616.85
5.6.200.0110.02916.85
5.6.190.0140.02416.85
5.6.180.0130.02816.94
5.6.170.0140.02116.80
5.6.160.0140.02416.88
5.6.150.0100.02716.91
5.6.140.0080.02716.92
5.6.130.0140.02616.87
5.6.120.0150.02216.88
5.6.110.0100.02616.79
5.6.100.0140.02216.84
5.6.90.0140.02216.82
5.6.80.0110.02216.65
5.6.70.0110.02716.55
5.6.60.0120.02416.58
5.6.50.0140.02316.58
5.6.40.0110.02316.63
5.6.30.0100.02716.65
5.6.20.0120.02616.64
5.6.10.0100.02416.56
5.6.00.0120.02116.58
5.5.380.0170.02214.66
5.5.370.0140.02114.75
5.5.360.0100.02714.66
5.5.350.0110.02414.68
5.5.340.0160.02514.92
5.5.330.0130.02514.88
5.5.320.0180.02514.82
5.5.310.0110.02614.73
5.5.300.0170.02114.84
5.5.290.0120.02414.79
5.5.280.0130.02314.89
5.5.270.0130.02214.77
5.5.260.0140.02214.84
5.5.250.0140.02014.74
5.5.240.0130.02414.57
5.5.230.0130.02514.61
5.5.220.0120.02414.61
5.5.210.0130.01914.64
5.5.200.0140.02014.63
5.5.190.0130.01814.63
5.5.180.0100.02514.51
5.5.170.0120.01214.90
5.5.160.0110.02114.48
5.5.150.0120.02514.66
5.5.140.0140.02114.57
5.5.130.0120.02014.52
5.5.120.0130.01914.57
5.5.110.0120.02214.52
5.5.100.0130.01914.47
5.5.90.0100.02214.48
5.5.80.0120.01914.54
5.5.70.0080.02314.55
5.5.60.0140.01814.52
5.5.50.0130.01814.42
5.5.40.0090.02214.57
5.5.30.0110.02014.47
5.5.20.0140.01914.52
5.5.10.0110.02314.49
5.5.00.0110.02214.49
5.4.450.0120.02214.13
5.4.440.0090.02114.08
5.4.430.0120.02014.12
5.4.420.0120.01914.12
5.4.410.0110.02414.10
5.4.400.0120.01813.95
5.4.390.0130.01714.03
5.4.380.0100.02014.01
5.4.370.0090.02013.98
5.4.360.0100.02113.94
5.4.350.0120.01814.02
5.4.340.0130.02113.97
5.4.330.0130.00511.64
5.4.320.0110.01914.09
5.4.310.0120.01714.04
5.4.300.0070.02213.99
5.4.290.0120.01914.03
5.4.280.0100.02013.97
5.4.270.0080.02413.96
5.4.260.0100.02013.97
5.4.250.0100.02013.98
5.4.240.0110.01913.94
5.4.230.0100.01813.92
5.4.220.0150.01614.02
5.4.210.0080.02113.96
5.4.200.0090.02213.91
5.4.190.0110.01813.92
5.4.180.0100.01914.07
5.4.170.0130.01813.91
5.4.160.0100.01914.02
5.4.150.0110.02014.01
5.4.140.0140.01813.44
5.4.130.0080.01913.19
5.4.120.0090.02013.21
5.4.110.0120.01813.19
5.4.100.0090.02113.24
5.4.90.0080.01913.15
5.4.80.0100.02013.25
5.4.70.0080.01913.23
5.4.60.0110.01713.16
5.4.50.0090.01913.18
5.4.40.0100.01913.19
5.4.30.0090.02013.22
5.4.20.0100.02213.18
5.4.10.0120.01613.16
5.4.00.0110.01813.05

preferences:
28.81 ms | 403 KiB | 5 Q