3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array(); $i =0; while($i <6) { $input[$i] = $i; echo $input[$i]; $i++; } $result = array_unique($input); print_r($result); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/GJr9F
function name:  (null)
number of ops:  18
compiled vars:  !0 = $input, !1 = $i, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
    4     2      > JMP                                                      ->8
    6     3    >   ASSIGN_DIM                                               !0, !1
          4        OP_DATA                                                  !1
    7     5        FETCH_DIM_R                                      ~6      !0, !1
          6        ECHO                                                     ~6
    8     7        PRE_INC                                                  !1
    4     8    >   IS_SMALLER                                               !1, 6
          9      > JMPNZ                                                    ~8, ->3
   11    10    >   INIT_FCALL                                               'array_unique'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
   13    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.44 ms | 1395 KiB | 17 Q