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(...array_merge( array(NULL), $input ) ); var_dump($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PZUXd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'array_map'
          2        INIT_FCALL                                               'array_merge'
   22     3        SEND_VAL                                                 <array>
   23     4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_UNPACK                                              $3
          7        CHECK_UNDEF_ARGS                                         
          8        DO_ICALL                                         $4      
   21     9        ASSIGN                                                   !1, $4
   27    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:
150.63 ms | 1394 KiB | 19 Q