3v4l.org

run code in 300+ 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"; echo $val; } 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/FubKT
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>
   30     1        INIT_FCALL                                               'array_walk_recursive'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'manipulate'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   32     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/FubKT
function name:  manipulate
number of ops:  4
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'
   27     2        ECHO                                                     !0
   28     3      > RETURN                                                   null

End of function manipulate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.57 ms | 1386 KiB | 17 Q