3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = array(); $url = array('dog', 'cat', 'fish'); array_walk($url, function(&$value, &$key) { $temp[$value] = array($value, array(9,9)); }); echo '<pre>'; //echo json_encode($url, true); print_r($temp); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nUIFI
function name:  (null)
number of ops:  13
compiled vars:  !0 = $temp, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_walk'
          3        SEND_REF                                                 !1
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FnUIFI%3A6%240'
    8     5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
   11     7        ECHO                                                     '%3Cpre%3E'
   13     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   14    11        ECHO                                                     '%3C%2Fpre%3E'
         12      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FnUIFI%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
230.46 ms | 1395 KiB | 17 Q