3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.03 ms | 1395 KiB | 15 Q