3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'ordernumber' => '#ordernumber', 'transactionamount' => '#transactionamount', ); array_walk($data, create_function('&$value,$key', '$value = sprintf("%s|%s", $key, $value);') ); echo implode('|', $data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WHBCV
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
    9     3        INIT_FCALL_BY_NAME                                       'create_function'
          4        SEND_VAL_EX                                              '%26%24value%2C%24key'
          5        SEND_VAL_EX                                              '%24value+%3D+sprintf%28%22%25s%7C%25s%22%2C+%24key%2C+%24value%29%3B'
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
   12     9        INIT_FCALL                                               'implode'
         10        SEND_VAL                                                 '%7C'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.94 ms | 934 KiB | 21 Q