3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $db = new PDO('mysql:host=localhost;dbname=testdb;charset=utf8', 'username', 'password'); } catch (Exception $e) { echo 'catch' . "\n"; } finally { echo 'finally'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 162) Position 1 = 11, Position 2 = 10
Branch analysis from position: 11
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
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
2 jumps found. (Code = 162) Position 1 = 11, Position 2 = 10
Branch analysis from position: 11
Branch analysis from position: 10
filename:       /in/0opkc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $db, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'PDO'
          1        SEND_VAL_EX                                              'mysql%3Ahost%3Dlocalhost%3Bdbname%3Dtestdb%3Bcharset%3Dutf8'
          2        SEND_VAL_EX                                              'username'
          3        SEND_VAL_EX                                              'password'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
          6      > JMP                                                      ->9
    6     7  E > > CATCH                                       last         'Exception'
    7     8    >   ECHO                                                     'catch%0A'
    9     9    > > FAST_CALL                                                ->11
         10    > > JMP                                                      ->13
   10    11    >   ECHO                                                     'finally'
         12      > FAST_RET                                                 
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.03 ms | 1398 KiB | 13 Q