3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){ try { throw new Exception("test"); } catch(Exception $e) { print_r("printuje returna\n"); } finally { print_r("printuje finaly\n"); } } var_dump(test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gjOqg
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'test'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function test:
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 = 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 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gjOqg
function name:  test
number of ops:  16
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'Exception'
          1        SEND_VAL_EX                                              'test'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $2
          4*       JMP                                                      ->9
    6     5  E > > CATCH                                       last         'Exception'
    8     6    >   INIT_FCALL                                               'print_r'
          7        SEND_VAL                                                 'printuje+returna%0A'
          8        DO_ICALL                                                 
   11     9      > FAST_CALL                                                ->11
         10    > > JMP                                                      ->15
   12    11    >   INIT_FCALL                                               'print_r'
         12        SEND_VAL                                                 'printuje+finaly%0A'
         13        DO_ICALL                                                 
         14      > FAST_RET                                                 
   14    15    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.65 ms | 1398 KiB | 18 Q