3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ciao = array('ciao'=>'come','va'=>'bene','tu'=>'ok'); $config = array(); array_walk($config, function($value, $key) use($config) { $config[] = $key . '=' . $value; }); $config = implode(' ', $config); echo $config; print_r($ciao);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8UFTI
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ciao, !1 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_walk'
          3        SEND_REF                                                 !1
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F8UFTI%3A5%240'
          5        BIND_LEXICAL                                             ~4, !1
    7     6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   11    13        ECHO                                                     !1
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F8UFTI%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.14 ms | 1387 KiB | 19 Q