3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dsn = 'mysql:dbname=test;host=127.0.0.1'; $user = 'googleguy'; $password = 'googleguy'; /* Using try/catch around the constructor is still valid even though we set the ERRMODE to WARNING since PDO::__construct will always throw a PDOException if the connection fails. */ try { $dbh = new PDO($dsn, $user, $password, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)); } catch (PDOException $e) { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
filename:       /in/Uc6GR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dsn, !1 = $user, !2 = $password, !3 = $dbh, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'mysql%3Adbname%3Dtest%3Bhost%3D127.0.0.1'
    4     1        ASSIGN                                                   !1, 'googleguy'
    5     2        ASSIGN                                                   !2, 'googleguy'
   12     3        NEW                                              $8      'PDO'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !2
          7        SEND_VAL_EX                                              <array>
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !3, $8
         10      > JMP                                                      ->12
   13    11  E > > CATCH                                       last         'PDOException'
   15    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.73 ms | 1393 KiB | 13 Q