3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.86 ms | 1396 KiB | 17 Q