3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($n = 0;$n < 100; $n++){ echo "normal n:$n\n"; if($n > 0 && $n % 10 == 0){ echo '--every 10th--'."\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 = 16, Position 2 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
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 = 2
Branch analysis from position: 16
Branch analysis from position: 2
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/TnDQm
function name:  (null)
number of ops:  17
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->14
    4     2    >   ROPE_INIT                                     3  ~3      'normal+n%3A'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%0A'
          5        ECHO                                                     ~2
    5     6        IS_SMALLER                                       ~5      0, !0
          7      > JMPZ_EX                                          ~5      ~5, ->11
          8    >   MOD                                              ~6      !0, 10
          9        IS_EQUAL                                         ~7      ~6, 0
         10        BOOL                                             ~5      ~7
         11    > > JMPZ                                                     ~5, ->13
    6    12    >   ECHO                                                     '--every+10th--%0A'
    3    13    >   PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 100
         15      > JMPNZ                                                    ~9, ->2
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.3 ms | 1393 KiB | 13 Q