3v4l.org

run code in 500+ PHP versions simultaneously
<?php function one () { two(); } function two () { three(); } function three () { four(); } function four () { five(); } function five () { throw new Exception; } try {one();}catch (Exception $e){var_dump($e->getTrace());}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
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 = 62) Position 1 = -2
filename:       /in/YLQnV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                                   'one'
          1        DO_FCALL                                          0          
          2      > JMP                                                          ->9
          3  E > > CATCH                                           last         'Exception'
          4    >   INIT_FCALL                                                   'var_dump'
          5        INIT_METHOD_CALL                                             !0, 'getTrace'
          6        DO_FCALL                                          0  $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
          9    > > RETURN                                                       1

Function one:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLQnV
function name:  one
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                           'two'
          1        DO_FCALL                                          0          
    5     2      > RETURN                                                       null

End of function one

Function two:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLQnV
function name:  two
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL_BY_NAME                                           'three'
          1        DO_FCALL                                          0          
    9     2      > RETURN                                                       null

End of function two

Function three:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLQnV
function name:  three
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL_BY_NAME                                           'four'
          1        DO_FCALL                                          0          
   13     2      > RETURN                                                       null

End of function three

Function four:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLQnV
function name:  four
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL_BY_NAME                                           'five'
          1        DO_FCALL                                          0          
   17     2      > RETURN                                                       null

End of function four

Function five:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/YLQnV
function name:  five
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E >   NEW                                                  $0      'Exception'
          1        DO_FCALL                                          0          
          2      > THROW                                             0          $0
   21     3*     > RETURN                                                       null

End of function five

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.63 ms | 1693 KiB | 15 Q