3v4l.org

run code in 300+ PHP versions simultaneously
<?php function secret($key, #[\SensitiveParameter] string $key2, $otherKey) { throw new Exception(''); } $key = '123'; print secret($key, // plain visible $key, // hidden by the method new SensitiveParameterValue($key), // hidden by the caller ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KrViH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '123'
    8     1        INIT_FCALL                                               'secret'
          2        SEND_VAR                                                 !0
    9     3        SEND_VAR                                                 !0
   10     4        NEW                                              $2      'SensitiveParameterValue'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $2
          8        DO_FCALL                                      0  $4      
          9        ECHO                                                     $4
   13    10      > RETURN                                                   1

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

End of function secret

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.48 ms | 1401 KiB | 14 Q