3v4l.org

run code in 500+ PHP versions simultaneously
<?php $myArray = array( "a", array( "a", "b", array( "a", "b", "c", array( "a", "b", "c", "d", array("the end") ) ) ) ); function manipulate(&$val) { $val .= " appended"; } array_walk_recursive($myArray, 'manipulate', $myArray); var_dump($myArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uk5kv
function name:  (null)
number of ops:  10
compiled vars:  !0 = $myArray
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   28     1        INIT_FCALL                                                   'array_walk_recursive'
          2        SEND_REF                                                     !0
          3        SEND_VAL                                                     'manipulate'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                                     
   30     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Function manipulate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uk5kv
function name:  manipulate
number of ops:  3
compiled vars:  !0 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   23     0  E >   RECV                                                 !0      
   25     1        ASSIGN_OP                                         8          !0, '+appended'
   26     2      > RETURN                                                       null

End of function manipulate

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.73 ms | 3010 KiB | 15 Q