3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array( array( 'Category', 'fruit', 'carbs', ), array( 'Day 1 - Program', 'Eat banana', 'Eat bread', ), array( 'Day 1 - record', '', '', ), ); $output = array_map(null, ...$input); $output2 = call_user_func_array( 'array_map', array_merge( array(NULL), $input ) ); var_dump($output === $output2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ke3F
function name:  (null)
number of ops:  21
compiled vars:  !0 = $input, !1 = $output, !2 = $output2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 null
          3        SEND_UNPACK                                              !0
          4        CHECK_UNDEF_ARGS                                         
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
   23     7        INIT_FCALL                                               'array_map'
   25     8        INIT_FCALL                                               'array_merge'
   26     9        SEND_VAL                                                 <array>
   27    10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        SEND_ARRAY                                               $6
         13        CHECK_UNDEF_ARGS                                         
         14        DO_FCALL                                      0  $7      
   23    15        ASSIGN                                                   !2, $7
   30    16        INIT_FCALL                                               'var_dump'
         17        IS_IDENTICAL                                     ~9      !1, !2
         18        SEND_VAL                                                 ~9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.87 ms | 1395 KiB | 19 Q