3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ( $iter = 1; $iter <= 100; $iter++ ) { $print_number = true; if ( $iter % 3 === 0 ) { $print_number = false; echo "Active"; } if ( $iter % 5 === 0 ) { $print_number = false; echo "Campaign"; } if ( true === $print_number ) { echo $iter; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 2
Branch analysis from position: 19
Branch analysis from position: 2
Branch analysis from position: 16
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/oDQdT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $iter, !1 = $print_number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->17
    4     2    >   ASSIGN                                                   !1, <true>
    5     3        MOD                                              ~4      !0, 3
          4        IS_IDENTICAL                                             ~4, 0
          5      > JMPZ                                                     ~5, ->8
    6     6    >   ASSIGN                                                   !1, <false>
    7     7        ECHO                                                     'Active'
    9     8    >   MOD                                              ~7      !0, 5
          9        IS_IDENTICAL                                             ~7, 0
         10      > JMPZ                                                     ~8, ->13
   10    11    >   ASSIGN                                                   !1, <false>
   11    12        ECHO                                                     'Campaign'
   13    13    >   TYPE_CHECK                                    8          !1
         14      > JMPZ                                                     ~10, ->16
   14    15    >   ECHO                                                     !0
    3    16    >   PRE_INC                                                  !0
         17    >   IS_SMALLER_OR_EQUAL                                      !0, 100
         18      > JMPNZ                                                    ~12, ->2
   16    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.92 ms | 1394 KiB | 13 Q