3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = []; for ($day = 0; $day < 21; $day++) { $output[] = strtotime(sprintf('+%d days', $day)); } echo "<select name='days'>"; foreach ($output as $day) { echo "<option value='".$day."'>".date('l jS \of F Y', $day)."</option>"; } echo "</select>";
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
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 28
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 28
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/ZMVWn
function name:  (null)
number of ops:  31
compiled vars:  !0 = $output, !1 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
    5     3    >   INIT_FCALL                                               'strtotime'
          4        INIT_FCALL                                               'sprintf'
          5        SEND_VAL                                                 '%2B%25d+days'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN_DIM                                               !0
         11        OP_DATA                                                  $6
    4    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 21
         14      > JMPNZ                                                    ~8, ->3
    7    15    >   ECHO                                                     '%3Cselect+name%3D%27days%27%3E'
    8    16      > FE_RESET_R                                       $9      !0, ->28
         17    > > FE_FETCH_R                                               $9, !1, ->28
   10    18    >   CONCAT                                           ~10     '%3Coption+value%3D%27', !1
         19        CONCAT                                           ~11     ~10, '%27%3E'
         20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'l+jS+%5Cof+F+Y'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $12     
         24        CONCAT                                           ~13     ~11, $12
         25        CONCAT                                           ~14     ~13, '%3C%2Foption%3E'
         26        ECHO                                                     ~14
    8    27      > JMP                                                      ->17
         28    >   FE_FREE                                                  $9
   12    29        ECHO                                                     '%3C%2Fselect%3E'
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.25 ms | 1448 KiB | 16 Q