3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = ["a", "b", "c"]; var_export( array_merge( ...array_map( null, ...array_fill(0, 3, $chars) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lZ25v
function name:  (null)
number of ops:  19
compiled vars:  !0 = $chars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'var_export'
    5     2        INIT_FCALL                                               'array_merge'
    6     3        INIT_FCALL                                               'array_map'
    7     4        SEND_VAL                                                 null
    8     5        INIT_FCALL                                               'array_fill'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 3
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $2      
         10        SEND_UNPACK                                              $2
         11        CHECK_UNDEF_ARGS                                         
    6    12        DO_ICALL                                         $3      
    8    13        SEND_UNPACK                                              $3
         14        CHECK_UNDEF_ARGS                                         
    5    15        DO_ICALL                                         $4      
    8    16        SEND_VAR                                                 $4
    4    17        DO_ICALL                                                 
   11    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.23 ms | 1012 KiB | 17 Q