3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.72 ms | 1395 KiB | 19 Q