3v4l.org

run code in 300+ PHP versions simultaneously
<?php $table_array = array(); $result = array('hi', 'hello', 'there'); array_walk($result, function(&$row) { //printf('%s ', $row); $index = &$row; $table_array[$index] = array(); }); var_dump($Table_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LGSMn
function name:  (null)
number of ops:  11
compiled vars:  !0 = $table_array, !1 = $result, !2 = $Table_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'array_walk'
          3        SEND_REF                                                 !1
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FLGSMn%3A4%240'
    8     5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FLGSMn%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LGSMn
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $row, !1 = $index, !2 = $table_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        ASSIGN_REF                                               !1, !0
    7     2        ASSIGN_DIM                                               !2, !1
          3        OP_DATA                                                  <array>
    8     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FLGSMn%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.68 ms | 1386 KiB | 17 Q