3v4l.org

run code in 500+ PHP versions simultaneously
<?php function __reindex(&$v,$k, &$aReindexed) { $kNew = $k+100; $aReindexed[$kNew] = $v; } $aTest = array(4,"f","_","test"); $aReindexed = array(); array_walk($aTest, "__reindex", $aReindexed ); print_r($aReindexed); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CXpQf
function name:  (null)
number of ops:  11
compiled vars:  !0 = $aTest, !1 = $aReindexed
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                       !0, <array>
    9     1        ASSIGN                                                       !1, <array>
   11     2        INIT_FCALL                                                   'array_walk'
          3        SEND_REF                                                     !0
          4        SEND_VAL                                                     '__reindex'
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                                     
   13     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
   15    10      > RETURN                                                       1

Function __reindex:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CXpQf
function name:  __reindex
number of ops:  8
compiled vars:  !0 = $v, !1 = $k, !2 = $aReindexed, !3 = $kNew
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
    4     3        ADD                                                  ~4      !1, 100
          4        ASSIGN                                                       !3, ~4
    5     5        ASSIGN_DIM                                                   !2, !3
          6        OP_DATA                                                      !0
    6     7      > RETURN                                                       null

End of function __reindex

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.8 ms | 3265 KiB | 15 Q