3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ '4X2' => 86, '4X3' => 9, '4X4' => 5, '6X2' => 14, '6X4' => 1 ]; array_walk( $arr, fn(&$v, $k) => $v = [ 'title' => $k, 'search' => "&vconfiguration[]=$k", 'count' => $v ] ); var_export($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RbL4M
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'array_walk'
   12     2        SEND_REF                                                 !0
   13     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   19     4        SEND_VAL                                                 ~2
   11     5        DO_ICALL                                                 
   20     6        INIT_FCALL                                               'var_export'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > 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/RbL4M
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2        INIT_ARRAY                                       ~2      !1, 'title'
   16     3        NOP                                                      
          4        FAST_CONCAT                                      ~3      '%26vconfiguration%5B%5D%3D', !1
          5        ADD_ARRAY_ELEMENT                                ~2      ~3, 'search'
   17     6        ADD_ARRAY_ELEMENT                                ~2      !0, 'count'
   14     7        ASSIGN                                           ~4      !0, ~2
          8      > RETURN                                                   ~4
   19     9*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.9 ms | 1437 KiB | 15 Q