3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo '<select name="years">' . PHP_EOL; for($i = date("Y")-3; $i <=date("Y")+5; $i++){ echo '<option value="' . $i . '">' . $i . '</option>' . PHP_EOL; } echo '</select>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/jIPKl
function name:  (null)
number of ops:  22
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         '%3Cselect+name%3D%22years%22%3E%0A'
    4     1        INIT_FCALL                                                   'date'
          2        SEND_VAL                                                     'Y'
          3        DO_ICALL                                             $1      
          4        SUB                                                  ~2      $1, 3
          5        ASSIGN                                                       !0, ~2
          6      > JMP                                                          ->14
    5     7    >   CONCAT                                               ~4      '%3Coption+value%3D%22', !0
          8        CONCAT                                               ~5      ~4, '%22%3E'
          9        CONCAT                                               ~6      ~5, !0
         10        CONCAT                                               ~7      ~6, '%3C%2Foption%3E'
         11        CONCAT                                               ~8      ~7, '%0A'
         12        ECHO                                                         ~8
    4    13        PRE_INC                                                      !0
         14    >   INIT_FCALL                                                   'date'
         15        SEND_VAL                                                     'Y'
         16        DO_ICALL                                             $10     
         17        ADD                                                  ~11     $10, 5
         18        IS_SMALLER_OR_EQUAL                                          !0, ~11
         19      > JMPNZ                                                        ~12, ->7
    7    20    >   ECHO                                                         '%3C%2Fselect%3E'
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.09 ms | 2412 KiB | 14 Q