3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.34 ms | 1006 KiB | 16 Q