3v4l.org

run code in 300+ PHP versions simultaneously
<?php $STOP = 5; $i = $j = 0; while($STOP-- > 0) { if($i++ & $j++) { echo "2up\n"; } echo "i = $i ; j = $j\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
Branch analysis from position: 9
filename:       /in/GRKgM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $STOP, !1 = $i, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                           ~4      !2, 0
          2        ASSIGN                                                   !1, ~4
    5     3      > JMP                                                      ->15
    8     4    >   POST_INC                                         ~6      !1
          5        POST_INC                                         ~7      !2
          6        BW_AND                                           ~8      ~6, ~7
          7      > JMPZ                                                     ~8, ->9
    9     8    >   ECHO                                                     '2up%0A'
   12     9    >   ROPE_INIT                                     5  ~10     'i+%3D+'
         10        ROPE_ADD                                      1  ~10     ~10, !1
         11        ROPE_ADD                                      2  ~10     ~10, '+%3B+j+%3D+'
         12        ROPE_ADD                                      3  ~10     ~10, !2
         13        ROPE_END                                      4  ~9      ~10, '%0A'
         14        ECHO                                                     ~9
    5    15    >   POST_DEC                                         ~13     !0
         16        IS_SMALLER                                               0, ~13
         17      > JMPNZ                                                    ~14, ->4
   15    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.29 ms | 1393 KiB | 13 Q