3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seqnums = array(); for ($snum=1; $snum<=48; $snum++) { $seqnums = array_merge($seqnums,array_fill(1,$snum,3)); } print_r($seqnums);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/GMbGm
function name:  (null)
number of ops:  20
compiled vars:  !0 = $seqnums, !1 = $snum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->14
    6     3    >   INIT_FCALL                                               'array_merge'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'array_fill'
          6        SEND_VAL                                                 1
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !0, $5
    4    13        PRE_INC                                                  !1
         14    >   IS_SMALLER_OR_EQUAL                                      !1, 48
         15      > JMPNZ                                                    ~8, ->3
    8    16    >   INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.27 ms | 1399 KiB | 19 Q