3v4l.org

run code in 300+ PHP versions simultaneously
<?php // vraag de week op als nummer $week = date('W'); // je wilt alleen de even weken tonen, dus bij oneven er 1 bij doen if($week % 2 == 1) { $week = $week + 1; } // wellicht overbodig, maar uit veiligheid altijd doen if($week < 1 OR $week > 52) { $week = 52; } // echo de HTML echo '<img scr="banner/week'.$week.'.jpg" alt="Banner met logo of zoiets">'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 13
Branch analysis from position: 9
filename:       /in/4bflI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $week
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'W'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    7     4        MOD                                              ~3      !0, 2
          5        IS_EQUAL                                                 ~3, 1
          6      > JMPZ                                                     ~4, ->9
    9     7    >   ADD                                              ~5      !0, 1
          8        ASSIGN                                                   !0, ~5
   13     9    >   IS_SMALLER                                       ~7      !0, 1
         10      > JMPNZ_EX                                         ~7      ~7, ->13
         11    >   IS_SMALLER                                       ~8      52, !0
         12        BOOL                                             ~7      ~8
         13    > > JMPZ                                                     ~7, ->15
   15    14    >   ASSIGN                                                   !0, 52
   19    15    >   CONCAT                                           ~10     '%3Cimg+scr%3D%22banner%2Fweek', !0
         16        CONCAT                                           ~11     ~10, '.jpg%22+alt%3D%22Banner+met+logo+of+zoiets%22%3E'
         17        ECHO                                                     ~11
   21    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.52 ms | 1451 KiB | 14 Q