3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){ try { throw new Exception("test"); } catch(Exception $e) { print_r('printuje returna'); } finally { print_r('printuje finaly'); } } test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1jqOv
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0          
          2      > 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/1jqOv
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'
          8        DO_ICALL                                                 
   11     9      > FAST_CALL                                                ->11
         10    > > JMP                                                      ->15
   12    11    >   INIT_FCALL                                               'print_r'
         12        SEND_VAL                                                 'printuje+finaly'
         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:
151.36 ms | 1398 KiB | 16 Q