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 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 14
Branch analysis from position: 10
filename:       /in/quLGY
function name:  (null)
number of ops:  20
compiled vars:  !0 = $week
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date'
          1        FETCH_CONSTANT                                   ~1      'W'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    7     5        MOD                                              ~4      !0, 2
          6        IS_EQUAL                                                 ~4, 1
          7      > JMPZ                                                     ~5, ->10
    9     8    >   ADD                                              ~6      !0, 1
          9        ASSIGN                                                   !0, ~6
   13    10    >   IS_SMALLER                                       ~8      !0, 1
         11      > JMPNZ_EX                                         ~8      ~8, ->14
         12    >   IS_SMALLER                                       ~9      52, !0
         13        BOOL                                             ~8      ~9
         14    > > JMPZ                                                     ~8, ->16
   15    15    >   ASSIGN                                                   !0, 52
   19    16    >   CONCAT                                           ~11     '%3Cimg+scr%3D%22banner%2Fweek', !0
         17        CONCAT                                           ~12     ~11, '.jpg%22+alt%3D%22Banner+met+logo+of+zoiets%22%3E'
         18        ECHO                                                     ~12
   21    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.22 ms | 1395 KiB | 15 Q