3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myException extends Exception {} try{throw new Exception("test");}catch(myException $ex){}finally{echo "still ran!";}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
2 jumps found. (Code = 162) Position 1 = 8, Position 2 = 7
Branch analysis from position: 8
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJXbd
function name:  (null)
number of ops:  11
compiled vars:  !0 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'Exception'
          1        SEND_VAL_EX                                              'test'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $2
          4*       JMP                                                      ->6
          5  E > > CATCH                                       last         'myException'
          6    > > FAST_CALL                                                ->8
          7    > > JMP                                                      ->10
          8    >   ECHO                                                     'still+ran%21'
          9      > FAST_RET                                                 
         10    > > RETURN                                                   1

Class myException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.47 ms | 1384 KiB | 13 Q