3v4l.org

run code in 300+ PHP versions simultaneously
<?php function some_lib( $auth ) { throw new Exception( 'Some error' ); } function my_code( #[\SensitiveParameter] $password ) { some_lib( $password ); } try { my_code('hunter2'); } catch ( Throwable $e ) { var_dump( $e->getTrace() ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
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/VQhiC
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'my_code'
          1        SEND_VAL                                                 'hunter2'
          2        DO_FCALL                                      0          
          3      > JMP                                                      ->10
   16     4  E > > CATCH                                       last         'Throwable'
   17     5    >   INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'getTrace'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
   18    10    > > RETURN                                                   1

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

End of function some_lib

Function my_code:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VQhiC
function name:  my_code
number of ops:  5
compiled vars:  !0 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'some_lib'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   12     4      > RETURN                                                   null

End of function my_code

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.63 ms | 1005 KiB | 16 Q