3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooException extends Exception {} function foo() { throw new FooException(); } function bar() { try { foo(); } catch (Exception $e) { throw $e; } } bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QSpja
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'bar'
          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
filename:       /in/QSpja
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $0      'FooException'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
    7     3*     > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 3
Branch analysis from position: 3
2 jumps found. (Code = 107) Position 1 = 4, Position 2 = -2
Branch analysis from position: 4
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/QSpja
function name:  bar
number of ops:  6
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
          2      > JMP                                                      ->5
   12     3  E > > CATCH                                       last         'Exception'
   13     4    > > THROW                                         0          !0
   15     5    > > RETURN                                                   null

End of function bar

Class FooException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.98 ms | 1397 KiB | 15 Q