3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( "data" => 'check', "test1" => Array ( "data" => 'Hello', ), "test2" => Array ( "data" => 'world' ), "test3" => Array ( "data" => 'bar', "tst" => Array ( "data" => 'Lorem', "bar" => Array ( "data" => 'doller', "foo" => Array ( "data" => 'sit', ) ) ) ), "test4" => Array ( "data" => 'HELLO', "tst" => Array ( "data" => 'ipsum', "bar" => Array ( "data" => 'Lorem', ) ) ) ); $arr['test5']['data'] = 'ss'; $result = []; array_walk_recursive($arr, function($v) use (&$result) { $result[] = $v; }); echo implode('/', $result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/160dt
function name:  (null)
number of ops:  17
compiled vars:  !0 = $arr, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   52     1        FETCH_DIM_W                                      $3      !0, 'test5'
          2        ASSIGN_DIM                                               $3, 'data'
          3        OP_DATA                                                  'ss'
   53     4        ASSIGN                                                   !1, <array>
   54     5        INIT_FCALL                                               'array_walk_recursive'
          6        SEND_REF                                                 !0
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F160dt%3A54%240'
          8        BIND_LEXICAL                                             ~6, !1
   56     9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
   57    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%2F'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F160dt%3A54%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/160dt
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   54     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
   55     2        ASSIGN_DIM                                               !1
          3        OP_DATA                                                  !0
   56     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F160dt%3A54%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.87 ms | 1395 KiB | 17 Q