3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = ['Rick', 'Lewi', 'Ferdi', 'Stefan']; $mapping = ['Team1', 'Team2', 'Team3']; $mappingCount = count($mapping); $row = array_merge(array_fill(0, $mappingCount, null), $row); var_dump($row);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qBviF
function name:  (null)
number of ops:  18
compiled vars:  !0 = $row, !1 = $mapping, !2 = $mappingCount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        COUNT                                            ~5      !1
          3        ASSIGN                                                   !2, ~5
    5     4        INIT_FCALL                                               'array_merge'
          5        INIT_FCALL                                               'array_fill'
          6        SEND_VAL                                                 0
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 null
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !0, $8
    6    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.51 ms | 1386 KiB | 19 Q