3v4l.org

run code in 300+ PHP versions simultaneously
<?php $STOP = 5; $i = $j = 0; while($STOP-- > 0) { echo "i = $i ; j = $j\n"; if($i++ & $j++) { echo "2up\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 = 14, Position 2 = 15
Branch analysis from position: 14
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: 15
filename:       /in/OAOjg
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
    6     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
    8    10        POST_INC                                         ~10     !1
         11        POST_INC                                         ~11     !2
         12        BW_AND                                           ~12     ~10, ~11
         13      > JMPZ                                                     ~12, ->15
    9    14    >   ECHO                                                     '2up%0A'
    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:
152.83 ms | 1394 KiB | 13 Q