3v4l.org

run code in 500+ PHP versions simultaneously
<?php function throwThings() { throw new \Exception(''); } try { throwThings('MyPassword'); } catch (\Error $e) { print_r($e); print_r($e->getTrace()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8lBso
function name:  (null)
number of ops:  14
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'throwthings'
          1        SEND_VAL                                                     'MyPassword'
          2        DO_FCALL                                          0          
          3      > JMP                                                          ->13
    9     4  E > > CATCH                                           last         'Error'
   10     5    >   INIT_FCALL                                                   'print_r'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
   11     8        INIT_FCALL                                                   'print_r'
          9        INIT_METHOD_CALL                                             !0, 'getTrace'
         10        DO_FCALL                                          0  $3      
         11        SEND_VAR                                                     $3
         12        DO_ICALL                                                     
   12    13    > > RETURN                                                       1

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

End of function throwthings

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.81 ms | 1259 KiB | 15 Q