3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { try { throw new Exception('Foo'); } catch (Exception $e) { var_dump('foo'); } finally { throw new Exception('Bar'); } } foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K7B8S
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.69 ms | 1402 KiB | 16 Q