3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Demonstrating inline PHP attribute issue in PHP7.x and below. */ function php7x_attributes( string $foo, #[\SensitiveParameter] string $bar ) { throw new \Exception( 'Testing SensitiveParameter attribute' ); } php7x_attributes( 'login', 'password' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9MhEf
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'php7x_attributes'
          1        SEND_VAL                                                 'login'
          2        SEND_VAL                                                 'password'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function php7x_attributes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.55 ms | 1451 KiB | 14 Q