3v4l.org

run code in 300+ PHP versions simultaneously
<?php $colors = array( 'red', 'green' ); //$color=""; $j=0; foreach($colors as $color) { while($j <6) { if($j>1) $value = $value."($j)"; $color[]=$value; $j++; } } print_r($color);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
Branch analysis from position: 12
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/p6J3i
function name:  (null)
number of ops:  23
compiled vars:  !0 = $colors, !1 = $j, !2 = $color, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
    5     2      > FE_RESET_R                                       $6      !0, ->18
          3    > > FE_FETCH_R                                               $6, !2, ->18
    7     4    > > JMP                                                      ->15
    9     5    >   IS_SMALLER                                               1, !1
          6      > JMPZ                                                     ~7, ->12
   10     7    >   ROPE_INIT                                     3  ~9      '%28'
          8        ROPE_ADD                                      1  ~9      ~9, !1
          9        ROPE_END                                      2  ~8      ~9, '%29'
         10        CONCAT                                           ~11     !3, ~8
         11        ASSIGN                                                   !3, ~11
   11    12    >   ASSIGN_DIM                                               !2
         13        OP_DATA                                                  !3
   12    14        PRE_INC                                                  !1
    7    15    >   IS_SMALLER                                               !1, 6
         16      > JMPNZ                                                    ~15, ->5
    5    17    > > JMP                                                      ->3
         18    >   FE_FREE                                                  $6
   16    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.13 ms | 1388 KiB | 15 Q