3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($roles_row){ if(!isset($roles_row['userid'])){ error_log('bad roles roles : ' . json_encode(debug_backtrace()) . "\nroles_row:" . json_encode($roles_row)); } //rest of code.... } //tests: a(['userid' => 'adfadf']);//ok a('aaaaaaaaaaaaaaa');//not ok
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4nVis
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'a'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
   12     3        INIT_FCALL                                               'a'
          4        SEND_VAL                                                 'aaaaaaaaaaaaaaa'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/4nVis
function name:  a
number of ops:  19
compiled vars:  !0 = $roles_row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ISSET_ISEMPTY_DIM_OBJ                         0  ~1      !0, 'userid'
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ                                                     ~2, ->18
    6     4    >   INIT_FCALL                                               'error_log'
          5        INIT_FCALL                                               'json_encode'
          6        INIT_FCALL                                               'debug_backtrace'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        CONCAT                                           ~5      'bad+roles+roles+%3A+', $4
         11        CONCAT                                           ~6      ~5, '%0Aroles_row%3A'
         12        INIT_FCALL                                               'json_encode'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        CONCAT                                           ~8      ~6, $7
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
    9    18    > > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.37 ms | 1399 KiB | 21 Q