3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(1,100) as $num) { if ($num % 3 == 0) { echo("Active"); } if ($num % 5 == 0) { echo("Campaign"); } if (($num % 3 != 0) && ($num % 6 != 0)) { echo($num); } echo("\n"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 24
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 22
Branch analysis from position: 20
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/vPd0N
function name:  (null)
number of ops:  26
compiled vars:  !0 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 100
          3        DO_ICALL                                         $1      
          4      > FE_RESET_R                                       $2      $1, ->24
          5    > > FE_FETCH_R                                               $2, !0, ->24
    3     6    >   MOD                                              ~3      !0, 3
          7        IS_EQUAL                                                 ~3, 0
          8      > JMPZ                                                     ~4, ->10
    4     9    >   ECHO                                                     'Active'
    6    10    >   MOD                                              ~5      !0, 5
         11        IS_EQUAL                                                 ~5, 0
         12      > JMPZ                                                     ~6, ->14
    7    13    >   ECHO                                                     'Campaign'
    9    14    >   MOD                                              ~7      !0, 3
         15        IS_NOT_EQUAL                                     ~8      ~7, 0
         16      > JMPZ_EX                                          ~8      ~8, ->20
         17    >   MOD                                              ~9      !0, 6
         18        IS_NOT_EQUAL                                     ~10     ~9, 0
         19        BOOL                                             ~8      ~10
         20    > > JMPZ                                                     ~8, ->22
   10    21    >   ECHO                                                     !0
   12    22    >   ECHO                                                     '%0A'
    2    23      > JMP                                                      ->5
         24    >   FE_FREE                                                  $2
   13    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.14 ms | 1396 KiB | 15 Q