3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dbconnect($host,$user, $pass) { throw new \PDOException('PDO connection error: '); } try { dbconnect('host','user', 'pass'); } catch (\PDOException $e) { //die('PDO connection error: ' . $e->getMessage()); throw new \Exception('PDO connection error: ' . $e->getMessage()); }

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.00319.97
8.4.10.0150.00020.49
8.3.150.0070.01119.02
8.3.140.0040.00417.07
8.3.130.0050.00318.56
8.3.120.0000.00820.59
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00316.88
8.3.70.0110.00718.54
8.3.60.0000.01516.88
8.3.50.0090.01124.58
8.3.40.0040.01218.78
8.3.30.0110.00419.17
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.270.0160.00417.48
8.2.260.0050.00518.34
8.2.250.0000.00816.80
8.2.240.0120.00617.13
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0130.00016.88
8.2.190.0140.00717.00
8.2.180.0140.00325.92
8.2.170.0110.00422.96
8.2.160.0140.00022.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0030.00721.00
8.2.100.0060.00617.93
8.2.90.0040.00419.26
8.2.80.0000.01117.97
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0000.00718.13
8.2.20.0070.00018.13
8.2.10.0070.00019.18
8.2.00.0070.00019.17
8.1.310.0030.01418.61
8.1.300.0040.00418.54
8.1.290.0090.00318.88
8.1.280.0110.00725.92
8.1.270.0070.00023.99
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.88
8.1.230.0000.01219.17
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0100.00018.10
8.1.170.0060.00618.53
8.1.160.0050.00318.86
8.1.150.0040.00418.82
8.1.140.0070.00018.89
8.1.130.0040.00420.06
8.1.120.0000.00717.49
8.1.110.0050.00317.46
8.1.100.0040.00417.36
8.1.90.0040.00317.46
8.1.80.0030.00617.46
8.1.70.0070.00017.41
8.1.60.0030.00517.63
8.1.50.0030.00617.55
8.1.40.0000.00717.51
8.1.30.0040.00417.66
8.1.20.0030.00617.70
8.1.10.0000.00817.66
8.1.00.0080.00017.56
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0000.00718.15
8.0.260.0000.00720.29
8.0.250.0030.00316.91
8.0.240.0030.00317.07
8.0.230.0030.00317.04
8.0.220.0070.00317.02
8.0.210.0070.00016.91
8.0.200.0030.00316.89
8.0.190.0030.00316.93
8.0.180.0080.00016.98
8.0.170.0030.00617.02
8.0.160.0050.00216.86
8.0.150.0000.00716.86
8.0.140.0040.00416.82
8.0.130.0030.00313.34
8.0.120.0050.00216.94
8.0.110.0030.00316.98
8.0.100.0000.00717.01
8.0.90.0030.00516.97
8.0.80.0080.00816.99
8.0.70.0000.00817.03
8.0.60.0000.00816.86
8.0.50.0000.00716.99
8.0.30.0060.01017.13
8.0.20.0090.01017.05
8.0.10.0080.00017.14
8.0.00.0090.00916.78
7.4.330.0020.00215.55
7.4.320.0030.00316.62
7.4.300.0060.00016.59
7.4.290.0020.00516.50
7.4.280.0050.00216.63
7.4.270.0000.00716.53
7.4.260.0050.00013.25
7.4.250.0030.00316.55
7.4.240.0030.00516.60
7.4.230.0030.00316.73
7.4.220.0040.00416.36
7.4.210.0060.00816.62
7.4.200.0000.00716.51
7.4.130.0060.01416.70
7.4.120.0200.00316.57
7.4.110.0100.00716.48
7.4.100.0090.00916.61
7.4.90.0060.01516.73
7.4.80.0030.01419.39
7.4.70.0140.00316.70
7.4.60.0030.01316.57
7.4.50.0060.01216.45
7.4.40.0080.00816.11
7.4.30.0080.00916.16
7.4.20.0110.00616.19
7.4.10.0070.00916.28
7.4.00.0090.00716.38
7.3.330.0060.00016.10
7.3.320.0050.00013.13
7.3.310.0040.00416.36
7.3.300.0030.00316.14
7.3.290.0090.00516.30
7.3.280.0130.00316.31
7.3.260.0130.00316.57
7.3.240.0110.00716.46
7.3.230.0130.00316.22
7.3.210.0120.00616.30
7.3.200.0130.00916.35
7.3.190.0130.00616.28
7.3.180.0060.00916.38
7.3.170.0080.00816.23
7.3.160.0060.01016.23
7.3.150.0090.00816.36
7.3.140.0050.01116.38
7.3.130.0080.00916.43
7.3.120.0090.00716.31
7.3.110.0030.01316.44
7.3.100.0080.00816.29
7.3.90.0100.00716.38
7.3.80.0070.00916.33
7.3.70.0100.00816.36
7.3.60.0100.00716.36
7.3.50.0080.01016.18
7.3.40.0080.00916.26
7.3.30.0100.00816.31
7.3.20.0070.01016.39
7.3.10.0120.00616.45
7.3.00.0120.00716.43
7.2.330.0150.00316.73
7.2.320.0110.00516.45
7.2.310.0100.00616.32
7.2.300.0110.00616.58
7.2.290.0060.01116.17
7.2.280.0080.00816.37
7.2.270.0040.01216.48
7.2.260.0080.01016.38
7.2.250.0080.00916.38
7.2.240.0110.00616.30
7.2.230.0050.01216.38
7.2.220.0110.00816.32
7.2.210.0090.00816.36
7.2.200.0120.00516.46
7.2.190.0110.00616.49
7.2.180.0080.01116.38
7.2.170.0080.00816.44
7.2.160.0110.00516.54
7.2.150.0080.01016.49
7.2.140.0130.00516.53
7.2.130.0150.00616.54
7.2.120.0100.00716.43
7.2.110.0110.00516.44
7.2.100.0180.00916.47
7.2.90.0090.00816.53
7.2.80.0110.00716.57
7.2.70.0110.00616.50
7.2.60.0090.00816.46
7.2.50.0080.00816.48
7.2.40.0150.00616.54
7.2.30.0140.00916.47
7.2.20.0090.00816.50
7.2.10.0080.00816.46
7.2.00.0090.00816.39

preferences:
74.52 ms | 403 KiB | 5 Q