3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options['key'][] = 'testkey1'; $options['value'][] = 'testvalue1'; $options['key'][] = 'testkey2'; $options['value'][] = 'testvalue2'; $options['key'][] = 'testkey3'; $options['value'][] = 'testvalue3'; echo "QueryString:\n"; print_r($options); $processed = array_map(function($key, $value) { return array( 'key' => $key, 'value' => $value, ); }, $options['key'], $options['value'] ); echo "Processed:\n"; print_r($processed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PGqBS
function name:  (null)
number of ops:  36
compiled vars:  !0 = $options, !1 = $processed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $2      !0, 'key'
          1        ASSIGN_DIM                                               $2
          2        OP_DATA                                                  'testkey1'
    4     3        FETCH_DIM_W                                      $4      !0, 'value'
          4        ASSIGN_DIM                                               $4
          5        OP_DATA                                                  'testvalue1'
    6     6        FETCH_DIM_W                                      $6      !0, 'key'
          7        ASSIGN_DIM                                               $6
          8        OP_DATA                                                  'testkey2'
    7     9        FETCH_DIM_W                                      $8      !0, 'value'
         10        ASSIGN_DIM                                               $8
         11        OP_DATA                                                  'testvalue2'
    9    12        FETCH_DIM_W                                      $10     !0, 'key'
         13        ASSIGN_DIM                                               $10
         14        OP_DATA                                                  'testkey3'
   10    15        FETCH_DIM_W                                      $12     !0, 'value'
         16        ASSIGN_DIM                                               $12
         17        OP_DATA                                                  'testvalue3'
   12    18        ECHO                                                     'QueryString%3A%0A'
   13    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
   15    22        INIT_FCALL                                               'array_map'
         23        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FPGqBS%3A15%240'
   20    24        SEND_VAL                                                 ~15
   21    25        FETCH_DIM_R                                      ~16     !0, 'key'
         26        SEND_VAL                                                 ~16
   22    27        FETCH_DIM_R                                      ~17     !0, 'value'
         28        SEND_VAL                                                 ~17
         29        DO_ICALL                                         $18     
   15    30        ASSIGN                                                   !1, $18
   25    31        ECHO                                                     'Processed%3A%0A'
   26    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !1
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FPGqBS%3A15%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PGqBS
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   17     2        INIT_ARRAY                                       ~2      !0, 'key'
   18     3        ADD_ARRAY_ELEMENT                                ~2      !1, 'value'
          4      > RETURN                                                   ~2
   20     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FPGqBS%3A15%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.94 ms | 1400 KiB | 17 Q