3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors','1'); 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/VdpCg
function name:  (null)
number of ops:  33
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                                                 
    4     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 '1'
          6        DO_ICALL                                                 
   15     7        ECHO                                                     'no+errors%3A%0A'
   17     8        INIT_FCALL                                               'declare_assoc'
          9        FETCH_DIM_W                                      $4      !0, 'a'
         10        FETCH_DIM_W                                      $5      $4, 'b'
         11        FETCH_DIM_W                                      $6      $5, 'c'
         12        FETCH_DIM_W                                      $7      $6, 'd'
         13        FETCH_DIM_W                                      $8      $7, 'e'
         14        FETCH_DIM_W                                      $9      $8, 'f'
         15        SEND_REF                                                 $9
         16        SEND_VAL                                                 65
         17        DO_FCALL                                      0          
   19    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   22    21        ECHO                                                     'errors%3A+%0A'
   24    22        FETCH_DIM_W                                      $12     !1, 'a'
         23        FETCH_DIM_W                                      $13     $12, 'b'
         24        FETCH_DIM_W                                      $14     $13, 'c'
         25        FETCH_DIM_W                                      $15     $14, 'd'
         26        FETCH_DIM_W                                      $16     $15, 'e'
         27        ASSIGN_DIM                                               $16, 'f'
         28        OP_DATA                                                  65
   26    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Function declare_assoc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VdpCg
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
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_FCALL                                               'error_reporting'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !2, $3
    8     5        INIT_FCALL                                               'error_reporting'
          6        SEND_VAL                                                 0
          7        DO_ICALL                                                 
   10     8        ASSIGN                                                   !0, !1
   12     9        INIT_FCALL                                               'error_reporting'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   13    12      > RETURN                                                   null

End of function declare_assoc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.58 ms | 1403 KiB | 20 Q