3v4l.org

run code in 300+ PHP versions simultaneously
<?php $initialData = [ [1, 'cat', 'calico'], [2, 'dog', 'collie'], [3, 'cat', 'siamese'], [4, 'dog', 'mutt'], ]; $transposedArray = call_user_func_array('array_map',array_merge(array(NULL),$initialData)); var_dump($transposedArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2q1Fk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $initialData, !1 = $transposedArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'array_map'
          2        INIT_FCALL                                               'array_merge'
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_ARRAY                                               $3
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      1  $4      
          9        ASSIGN                                                   !1, $4
   12    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.4 ms | 1011 KiB | 16 Q