3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.92 ms | 1395 KiB | 15 Q