3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; for ($i = 0; $i <= 100; $i++) { if( !($i % 2)) continue; echo "a counted while i=$i \n"; $a++; } echo "a is $a";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/LqP6d
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
    5     3    >   MOD                                              ~4      !1, 2
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->7
          6    > > JMP                                                      ->12
    6     7    >   ROPE_INIT                                     3  ~7      'a+counted+while+i%3D'
          8        ROPE_ADD                                      1  ~7      ~7, !1
          9        ROPE_END                                      2  ~6      ~7, '+%0A'
         10        ECHO                                                     ~6
    7    11        PRE_INC                                                  !0
    4    12    >   PRE_INC                                                  !1
         13    >   IS_SMALLER_OR_EQUAL                                      !1, 100
         14      > JMPNZ                                                    ~11, ->3
    9    15    >   NOP                                                      
         16        FAST_CONCAT                                      ~12     'a+is+', !0
         17        ECHO                                                     ~12
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.38 ms | 1394 KiB | 13 Q