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); } echo "no errors:\n"; declare_assoc($productitems['a']['b']['c']['d']['e']['f'], 65); var_dump($productitems); echo "errors: \n"; $blah['a']['b']['c']['d']['e']['f'] = 65; var_dump($blah);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c2cb2
function name:  (null)
number of ops:  29
compiled vars:  !0 = $productitems, !1 = $blah
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        ECHO                                                     'no+errors%3A%0A'
   16     4        INIT_FCALL                                               'declare_assoc'
          5        FETCH_DIM_W                                      $3      !0, 'a'
          6        FETCH_DIM_W                                      $4      $3, 'b'
          7        FETCH_DIM_W                                      $5      $4, 'c'
          8        FETCH_DIM_W                                      $6      $5, 'd'
          9        FETCH_DIM_W                                      $7      $6, 'e'
         10        FETCH_DIM_W                                      $8      $7, 'f'
         11        SEND_REF                                                 $8
         12        SEND_VAL                                                 65
         13        DO_FCALL                                      0          
   18    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   21    17        ECHO                                                     'errors%3A+%0A'
   23    18        FETCH_DIM_W                                      $11     !1, 'a'
         19        FETCH_DIM_W                                      $12     $11, 'b'
         20        FETCH_DIM_W                                      $13     $12, 'c'
         21        FETCH_DIM_W                                      $14     $13, 'd'
         22        FETCH_DIM_W                                      $15     $14, 'e'
         23        ASSIGN_DIM                                               $15, 'f'
         24        OP_DATA                                                  65
   25    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Function declare_assoc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c2cb2
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:
151.41 ms | 1403 KiB | 18 Q