3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.68 ms | 1394 KiB | 13 Q