3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b= 0; $k =0 ; for($i=1; $i<=5; $i++) { $b++; echo "Data ".$i." To user ".$b."<br>\n"; if($b == 3) $b =1; }
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 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 13
filename:       /in/0Zf7Q
function name:  (null)
number of ops:  17
compiled vars:  !0 = $b, !1 = $k, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 0
    4     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->14
    5     4    >   PRE_INC                                                  !0
    6     5        CONCAT                                           ~7      'Data+', !2
          6        CONCAT                                           ~8      ~7, '+To+user+'
          7        CONCAT                                           ~9      ~8, !0
          8        CONCAT                                           ~10     ~9, '%3Cbr%3E%0A'
          9        ECHO                                                     ~10
    8    10        IS_EQUAL                                                 !0, 3
         11      > JMPZ                                                     ~11, ->13
    9    12    >   ASSIGN                                                   !0, 1
    4    13    >   PRE_INC                                                  !2
         14    >   IS_SMALLER_OR_EQUAL                                      !2, 5
         15      > JMPNZ                                                    ~14, ->4
   10    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.37 ms | 1393 KiB | 13 Q