3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function declare_assoc(&$myArray, $value) { $err = error_reporting(); error_reporting(0); $myArray = $value; error_reporting($err); } declare_assoc($productitems['a']['b']['c']['d']['e']['f'], 65);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3a16J
function name:  (null)
number of ops:  14
compiled vars:  !0 = $productitems
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   14     3        INIT_FCALL                                               'declare_assoc'
          4        FETCH_DIM_W                                      $2      !0, 'a'
          5        FETCH_DIM_W                                      $3      $2, 'b'
          6        FETCH_DIM_W                                      $4      $3, 'c'
          7        FETCH_DIM_W                                      $5      $4, 'd'
          8        FETCH_DIM_W                                      $6      $5, 'e'
          9        FETCH_DIM_W                                      $7      $6, 'f'
         10        SEND_REF                                                 $7
         11        SEND_VAL                                                 65
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function declare_assoc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3a16J
function name:  declare_assoc
number of ops:  13
compiled vars:  !0 = $myArray, !1 = $value, !2 = $err
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'error_reporting'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !2, $3
    7     5        INIT_FCALL                                               'error_reporting'
          6        SEND_VAL                                                 0
          7        DO_ICALL                                                 
    9     8        ASSIGN                                                   !0, !1
   11     9        INIT_FCALL                                               'error_reporting'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   12    12      > RETURN                                                   null

End of function declare_assoc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.79 ms | 1399 KiB | 16 Q