3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b= 1; $k =0 ; for($i=1; $i<=5; $i++) { echo "Data ".$i." To user ".$b."<br>\n"; if($b == 3 && $k == 1) { $b--;$k--; } else { if($b == 3) $k++; if($b != 3) $b++; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
Branch analysis from position: 4
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
Branch analysis from position: 4
Branch analysis from position: 23
Branch analysis from position: 20
Branch analysis from position: 13
filename:       /in/dQY2a
function name:  (null)
number of ops:  27
compiled vars:  !0 = $b, !1 = $k, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 0
    4     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->24
    6     4    >   CONCAT                                           ~6      'Data+', !2
          5        CONCAT                                           ~7      ~6, '+To+user+'
          6        CONCAT                                           ~8      ~7, !0
          7        CONCAT                                           ~9      ~8, '%3Cbr%3E%0A'
          8        ECHO                                                     ~9
    7     9        IS_EQUAL                                         ~10     !0, 3
         10      > JMPZ_EX                                          ~10     ~10, ->13
         11    >   IS_EQUAL                                         ~11     !1, 1
         12        BOOL                                             ~10     ~11
         13    > > JMPZ                                                     ~10, ->17
    9    14    >   PRE_DEC                                                  !0
         15        PRE_DEC                                                  !1
         16      > JMP                                                      ->23
   13    17    >   IS_EQUAL                                                 !0, 3
         18      > JMPZ                                                     ~14, ->20
   14    19    >   PRE_INC                                                  !1
   15    20    >   IS_NOT_EQUAL                                             !0, 3
         21      > JMPZ                                                     ~16, ->23
   16    22    >   PRE_INC                                                  !0
    4    23    >   PRE_INC                                                  !2
         24    >   IS_SMALLER_OR_EQUAL                                      !2, 5
         25      > JMPNZ                                                    ~19, ->4
   18    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.16 ms | 1395 KiB | 13 Q