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 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
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 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
Branch analysis from position: 13
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/QTJlJ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $colors, !1 = $color, !2 = $j, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, 0
    5     3      > FE_RESET_R                                       $7      !0, ->19
          4    > > FE_FETCH_R                                               $7, !1, ->19
    7     5    > > JMP                                                      ->16
    9     6    >   IS_SMALLER                                               1, !2
          7      > JMPZ                                                     ~8, ->13
   10     8    >   ROPE_INIT                                     3  ~10     '%28'
          9        ROPE_ADD                                      1  ~10     ~10, !2
         10        ROPE_END                                      2  ~9      ~10, '%29'
         11        CONCAT                                           ~12     !3, ~9
         12        ASSIGN                                                   !3, ~12
   11    13    >   ASSIGN_DIM                                               !1
         14        OP_DATA                                                  !3
   12    15        PRE_INC                                                  !2
    7    16    >   IS_SMALLER                                               !2, 6
         17      > JMPNZ                                                    ~16, ->6
    5    18    > > JMP                                                      ->4
         19    >   FE_FREE                                                  $7
   16    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.45 ms | 1396 KiB | 15 Q