3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 4; for($i=0;$i<=$num;$i+=4) { echo $i . PHP_EOL; if($i == $num) { echo $i . 'CO' . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
Branch analysis from position: 10
filename:       /in/gYHac
function name:  (null)
number of ops:  14
compiled vars:  !0 = $num, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 4
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
    5     3    >   CONCAT                                           ~4      !1, '%0A'
          4        ECHO                                                     ~4
    7     5        IS_EQUAL                                                 !1, !0
          6      > JMPZ                                                     ~5, ->10
    8     7    >   CONCAT                                           ~6      !1, 'CO'
          8        CONCAT                                           ~7      ~6, '%0A'
          9        ECHO                                                     ~7
    3    10    >   ASSIGN_OP                                     1          !1, 4
         11    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         12      > JMPNZ                                                    ~9, ->3
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.05 ms | 1393 KiB | 13 Q