3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a', 'b', 'c'); $result = array(); for ($i = 0; $i < 5; $i++) { array_push($result, ...$array); } var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/0kQQO
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $result, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->10
    6     4    >   INIT_FCALL                                               'array_push'
          5        SEND_REF                                                 !1
          6        SEND_UNPACK                                              !0
          7        CHECK_UNDEF_ARGS                                         
          8        DO_ICALL                                                 
    5     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 5
         11      > JMPNZ                                                    ~8, ->4
    8    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.98 ms | 1394 KiB | 17 Q