3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.9 ms | 1394 KiB | 13 Q