3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array('aaa' => '111', 'bbb' => '222'); $output = implode(', ', array_map(function ($v, $k) { return $k . '=' . $v; }, $input, array_keys((array)$input)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uMTs8
function name:  (null)
number of ops:  17
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%2C+'
          3        INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuMTs8%3A5%240'
          5        SEND_VAL                                                 ~3
          6        SEND_VAR                                                 !0
          7        INIT_FCALL                                               'array_keys'
          8        CAST                                          7  ~4      !0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
         16      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.29 ms | 1395 KiB | 19 Q