3v4l.org

run code in 300+ PHP versions simultaneously
<?php function connect($login, $password) { throw new exception ("Connect error!"); } echo "Credentials exposed\n"; try { try { connect("login", "password"); } catch (Throwable $e){ throw $e; } } catch (Throwable $e){ echo $e; // only for demonsration! do no use echo in the catch block } echo "\n\nCredentials hidden:\n"; try { try { connect("login", "password"); } catch (Throwable $e) { throw new exception($e->getMessage()); } } catch (Throwable $e) { echo $e; // only for demonsration! do no use echo in the catch block }

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.5.20.0050.00419.55
8.5.10.0100.00816.61
8.5.00.0110.01019.94
8.4.170.0120.01023.90
8.4.160.0120.00923.70
8.4.150.0020.00014.05
8.4.140.0120.00817.70
8.4.130.0070.01317.73
8.4.120.0060.00320.65
8.4.110.0100.01122.23
8.4.100.0110.00917.91
8.4.90.0100.01017.73
8.4.80.0050.00317.84
8.4.70.0110.00817.86
8.4.60.0160.00617.76
8.4.50.0140.00818.82
8.4.40.0160.00319.51
8.4.30.0130.00618.46
8.4.20.0150.00720.53
8.4.10.0130.00617.62
8.3.300.0100.01120.82
8.3.290.0130.00820.78
8.3.280.0090.01018.49
8.3.270.0090.01016.63
8.3.260.0110.00816.50
8.3.250.0130.00619.16
8.3.240.0030.00616.68
8.3.230.0120.00816.57
8.3.220.0040.00617.20
8.3.210.0120.00716.77
8.3.200.0120.00816.75
8.3.190.0120.00716.61
8.3.180.0110.00716.74
8.3.170.0070.01019.07
8.3.160.0090.00916.57
8.3.150.0140.00416.98
8.3.140.0190.00016.68
8.3.130.0080.00016.48
8.3.120.0040.01520.89
8.3.110.0060.00316.63
8.3.100.0030.00618.11
8.3.90.0050.00316.52
8.3.80.0040.00417.97
8.3.70.0100.01016.50
8.3.60.0040.01116.88
8.3.50.0050.01118.15
8.3.40.0070.00718.76
8.3.30.0030.01218.73
8.3.20.0080.00022.23
8.3.10.0050.00323.56
8.3.00.0040.00422.27
8.2.300.0100.01018.97
8.2.290.0060.00320.63
8.2.280.0100.01018.39
8.2.270.0080.00817.07
8.2.260.0090.00018.29
8.2.250.0080.00016.57
8.2.240.0030.00516.47
8.2.230.0050.00320.94
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0080.00018.28
8.2.190.0120.00616.60
8.2.180.0150.00316.38
8.2.170.0090.00922.96
8.2.160.0080.00820.39
8.2.150.0030.00724.18
8.2.140.0040.00424.66
8.2.130.0030.00326.16
8.2.120.0040.00426.16
8.2.110.0060.00322.10
8.2.100.0110.00017.91
8.2.90.0100.00019.48
8.2.80.0000.00818.16
8.2.70.0030.00617.91
8.2.60.0060.00318.03
8.2.50.0040.00418.10
8.2.40.0030.00619.41
8.2.30.0040.00419.20
8.2.20.0050.00217.96
8.2.10.0000.00719.11
8.2.00.0040.00419.23
8.1.340.0130.00921.69
8.1.330.0120.00716.73
8.1.320.0090.00916.16
8.1.310.0060.01218.46
8.1.300.0040.00716.67
8.1.290.0090.00318.88
8.1.280.0140.00725.92
8.1.270.0080.00022.06
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.53
8.1.230.0040.00721.02
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0050.00218.83
8.1.150.0000.00918.82
8.1.140.0040.00420.75
8.1.130.0030.00320.14
8.1.120.0040.00417.50
8.1.110.0040.00417.45
8.1.100.0000.01117.34
8.1.90.0050.00217.50
8.1.80.0030.00617.45
8.1.70.0000.00717.48
8.1.60.0050.00517.55
8.1.50.0040.00417.48
8.1.40.0000.00817.40
8.1.30.0000.00717.54
8.1.20.0000.00817.63
8.1.10.0050.00317.48
8.1.00.0000.00817.46
8.0.300.0090.00019.93
8.0.290.0040.00416.75
8.0.280.0000.00718.29
8.0.270.0000.00817.25
8.0.260.0030.00320.25
8.0.250.0070.00017.03
8.0.240.0040.00416.88
8.0.230.0000.00716.95
8.0.220.0070.00016.85
8.0.210.0000.00716.76
8.0.200.0000.00716.83
8.0.190.0000.00816.83
8.0.180.0080.00016.86
8.0.170.0060.00316.77
8.0.160.0070.00016.90
8.0.150.0030.00516.97
8.0.140.0000.00716.84
8.0.130.0050.00013.31
8.0.120.0040.00416.89
8.0.110.0000.00717.06
8.0.100.0000.00716.80
8.0.90.0070.00016.86
8.0.80.0090.00916.87
8.0.70.0040.00416.95
8.0.60.0040.00417.02
8.0.50.0050.00316.99
8.0.30.0080.01217.21
8.0.20.0050.01517.23
8.0.10.0040.00417.05
8.0.00.0130.00716.98
7.4.330.0000.00516.84
7.4.320.0060.00016.64
7.4.300.0000.00616.48
7.4.290.0000.00716.40
7.4.280.0030.00516.58
7.4.270.0000.00716.49
7.4.260.0050.00013.33
7.4.250.0040.00416.53
7.4.240.0010.00616.45
7.4.230.0030.00416.63
7.4.220.0070.00016.53
7.4.210.0070.00916.53
7.4.200.0030.00316.57
7.4.140.0030.01417.86
7.4.130.0140.01016.30
7.4.120.0140.00716.69
7.4.110.0030.01916.64
7.4.100.0100.00616.52
7.4.90.0120.01216.48
7.4.80.0050.01519.39
7.4.70.0100.00616.47
7.4.60.0060.01316.55
7.4.50.0040.00816.45
7.4.40.0090.01516.52
7.4.10.0100.00714.82
7.4.00.0050.01115.01
7.3.330.0000.00716.34
7.3.320.0030.00313.21
7.3.310.0070.00016.38
7.3.300.0070.00016.37
7.3.290.0000.00616.40
7.3.280.0090.00616.30
7.3.260.0100.00816.45
7.3.240.0080.00916.51
7.3.230.0060.01016.33
7.3.210.0130.01016.54
7.3.200.0080.00816.34
7.3.190.0090.00916.38
7.3.180.0060.01516.68
7.3.170.0140.00316.41
7.3.160.0120.01016.50
7.3.130.0060.01214.91
7.3.120.0100.00714.92
7.3.110.0000.01514.47
7.3.100.0070.00714.68
7.3.90.0070.00814.75
7.3.80.0050.00514.76
7.3.70.0090.00614.82
7.3.60.0100.00514.86
7.3.50.0090.00614.79
7.3.40.0070.00414.71
7.3.30.0020.01014.56
7.3.20.0080.00815.71
7.3.10.0100.00715.78
7.3.00.0050.00715.69
7.2.330.0170.00016.49
7.2.320.0030.01316.77
7.2.310.0060.01316.64
7.2.300.0120.00916.65
7.2.290.0100.00716.43
7.2.260.0060.01214.76
7.2.250.0060.01015.29
7.2.240.0070.00715.23
7.2.230.0030.01314.99
7.2.220.0080.00714.69
7.2.210.0070.00815.04
7.2.200.0050.01315.12
7.2.190.0030.01015.03
7.2.180.0130.00514.90
7.2.170.0070.00614.94
7.2.160.0090.00615.10
7.2.150.0050.01115.91
7.2.140.0100.00516.06
7.2.130.0050.00916.10
7.2.120.0060.01116.11
7.2.110.0080.00915.98
7.2.100.0080.00815.85
7.2.90.0160.01315.86
7.2.80.0100.00616.09
7.2.70.0030.01315.96
7.2.60.0080.00715.87
7.2.50.0080.00916.10
7.2.40.0080.00816.06
7.2.30.0060.01016.07
7.2.20.0070.00916.12
7.2.10.0070.01416.02
7.2.00.0100.00715.96
7.1.330.0060.00915.79
7.1.320.0100.00814.80
7.1.310.0080.00414.86
7.1.300.0020.01314.74
7.1.290.0060.00514.84
7.1.280.0080.00614.85
7.1.270.0090.01014.74
7.1.260.0090.00714.86
7.1.250.0090.00714.84
7.1.240.0000.00815.98
7.1.230.0070.00715.78
7.1.220.0080.00415.75
7.1.210.0070.00715.86
7.1.200.0070.00715.78
7.1.190.0040.00815.82
7.1.180.0060.00915.72
7.1.170.0000.01315.63
7.1.160.0030.00915.67
7.1.150.0090.00615.94
7.1.140.0160.00315.69
7.1.130.0070.01115.78
7.1.120.0070.00315.86
7.1.110.0090.00615.63
7.1.100.0040.01116.02
7.1.90.0000.01415.87
7.1.80.0070.00316.02
7.1.70.0060.00615.71
7.1.60.0080.00615.84
7.1.50.0000.01015.86
7.1.40.0060.00615.47
7.1.30.0000.01115.80
7.1.20.0000.01115.48
7.1.10.0040.01115.48
7.1.00.0070.00715.73

preferences:
32.25 ms | 403 KiB | 5 Q