3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = ['a','b','c','d','e','f']; for($i=count($arr)-1;$i>=0;$i--){ $arr[]=$arr[$i]; unset($arr[$i]); } print_r($arr);
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 = 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/fugHd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    4     1        COUNT                                                ~3      !0
          2        SUB                                                  ~4      ~3, 1
          3        ASSIGN                                                       !1, ~4
          4      > JMP                                                          ->10
    5     5    >   FETCH_DIM_R                                          ~7      !0, !1
          6        ASSIGN_DIM                                                   !0
          7        OP_DATA                                                      ~7
    6     8        UNSET_DIM                                                    !0, !1
    4     9        PRE_DEC                                                      !1
         10    >   IS_SMALLER_OR_EQUAL                                          0, !1
         11      > JMPNZ                                                        ~9, ->5
    8    12    >   INIT_FCALL                                                   'print_r'
         13        SEND_VAR                                                     !0
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
199.86 ms | 2609 KiB | 14 Q