3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'one@gmail.com' => [ '70,80', '90,100' ], 'two@gmail.com' => [ '10' ] ]; array_walk($arr, function (&$item, $key) { $item = "key: {$key}". PHP_EOL ."value: " . implode(" ", $item); }); echo implode(PHP_EOL . PHP_EOL, $arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nLfKT
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FnLfKT%3A12%240'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   14     6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '%0A%0A'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FnLfKT%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nLfKT
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $item, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        NOP                                                      
          3        FAST_CONCAT                                      ~2      'key%3A+', !1
          4        CONCAT                                           ~3      ~2, '%0A'
          5        CONCAT                                           ~4      ~3, 'value%3A+'
          6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '+'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        CONCAT                                           ~6      ~4, $5
         11        ASSIGN                                                   !0, ~6
         12      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FnLfKT%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.19 ms | 1395 KiB | 17 Q