3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.5 ms | 1395 KiB | 15 Q