3v4l.org

run code in 500+ 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', ) ) ) ); $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/4ZjK3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   52     1        ASSIGN                                                       !1, <array>
   53     2        INIT_FCALL                                                   'array_walk_recursive'
          3        SEND_REF                                                     !0
          4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        BIND_LEXICAL                                                 ~4, !1
   55     6        SEND_VAL                                                     ~4
   53     7        DO_ICALL                                                     
   56     8        FRAMELESS_ICALL_2                implode             ~6      '%26', !1
          9        ECHO                                                         ~6
         10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4ZjK3
function name:  {closure:/in/4ZjK3:53}
number of ops:  5
compiled vars:  !0 = $v, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   53     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
   54     2        ASSIGN_DIM                                                   !1
          3        OP_DATA                                                      !0
   55     4      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.62 ms | 2745 KiB | 14 Q