3v4l.org

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

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

End of function %00%7Bclosure%7D%2Fin%2FrqHGn%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.49 ms | 1386 KiB | 15 Q