3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $pdo = new PDO('sqlite:host=badhost;dbname=test', 'test', 'pass'); } catch(PDOException $ex) { echo 'cuaght! '.$ex->getMessage(); }
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: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UFWaU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $pdo, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'PDO'
          1        SEND_VAL_EX                                              'sqlite%3Ahost%3Dbadhost%3Bdbname%3Dtest'
          2        SEND_VAL_EX                                              'test'
          3        SEND_VAL_EX                                              'pass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
          6      > JMP                                                      ->12
    4     7  E > > CATCH                                       last         'PDOException'
    5     8    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          9        DO_FCALL                                      0  $5      
         10        CONCAT                                           ~6      'cuaght%21+', $5
         11        ECHO                                                     ~6
    6    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.25 ms | 1384 KiB | 13 Q