3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = date("Y"); $max_year = $year + 10; echo('<select name="year">'); while($year < $max_year){ $current_year ++; echo('<option value="'.$current_year.'">'.$current_year.'</option>'); } 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 = 16, Position 2 = 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/SdTu8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $year, !1 = $max_year, !2 = $current_year
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        ADD                                              ~5      !0, 10
          5        ASSIGN                                                   !1, ~5
    4     6        ECHO                                                     '%3Cselect+name%3D%22year%22%3E'
    5     7      > JMP                                                      ->14
    6     8    >   PRE_INC                                                  !2
    7     9        CONCAT                                           ~8      '%3Coption+value%3D%22', !2
         10        CONCAT                                           ~9      ~8, '%22%3E'
         11        CONCAT                                           ~10     ~9, !2
         12        CONCAT                                           ~11     ~10, '%3C%2Foption%3E'
         13        ECHO                                                     ~11
    5    14    >   IS_SMALLER                                               !0, !1
         15      > JMPNZ                                                    ~12, ->8
    9    16    >   ECHO                                                     '%3C%2Fselect%3E'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.19 ms | 1395 KiB | 15 Q