3v4l.org

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

End of function test2

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.01 ms | 1403 KiB | 20 Q