3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_year = date("Y"); $years = range(intval($current_year), 2016); echo "<ul>"; foreach ($years as $value) { echo "<li><a href='blog_posts.php?month=01&yr=$value;'>$value</a></li>"; } echo "</ul>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/VcL9h
function name:  (null)
number of ops:  23
compiled vars:  !0 = $current_year, !1 = $years, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'range'
          5        CAST                                          4  ~5      !0
          6        SEND_VAL                                                 ~5
          7        SEND_VAL                                                 2016
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    5    10        ECHO                                                     '%3Cul%3E'
    6    11      > FE_RESET_R                                       $8      !1, ->20
         12    > > FE_FETCH_R                                               $8, !2, ->20
    7    13    >   ROPE_INIT                                     5  ~10     '%3Cli%3E%3Ca+href%3D%27blog_posts.php%3Fmonth%3D01%26yr%3D'
         14        ROPE_ADD                                      1  ~10     ~10, !2
         15        ROPE_ADD                                      2  ~10     ~10, '%3B%27%3E'
         16        ROPE_ADD                                      3  ~10     ~10, !2
         17        ROPE_END                                      4  ~9      ~10, '%3C%2Fa%3E%3C%2Fli%3E'
         18        ECHO                                                     ~9
    6    19      > JMP                                                      ->12
         20    >   FE_FREE                                                  $8
    9    21        ECHO                                                     '%3C%2Ful%3E'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.57 ms | 1438 KiB | 15 Q