3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i<=30; $i++) { echo '<option value="'.date('Y-m-d', strtotime("-$i day")).'">'.date('Y-m', strtotime("-$i day")).'</option>'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 2
Branch analysis from position: 30
Branch analysis from position: 2
filename:       /in/tbg3Q
function name:  (null)
number of ops:  31
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->28
    3     2    >   INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-d'
          4        INIT_FCALL                                               'strtotime'
          5        ROPE_INIT                                     3  ~3      '-'
          6        ROPE_ADD                                      1  ~3      ~3, !0
          7        ROPE_END                                      2  ~2      ~3, '+day'
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        CONCAT                                           ~7      '%3Coption+value%3D%22', $6
         13        CONCAT                                           ~8      ~7, '%22%3E'
         14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'Y-m'
         16        INIT_FCALL                                               'strtotime'
         17        ROPE_INIT                                     3  ~10     '-'
         18        ROPE_ADD                                      1  ~10     ~10, !0
         19        ROPE_END                                      2  ~9      ~10, '+day'
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                         $12     
         22        SEND_VAR                                                 $12
         23        DO_ICALL                                         $13     
         24        CONCAT                                           ~14     ~8, $13
         25        CONCAT                                           ~15     ~14, '%3C%2Foption%3E'
         26        ECHO                                                     ~15
    2    27        PRE_INC                                                  !0
         28    >   IS_SMALLER_OR_EQUAL                                      !0, 30
         29      > JMPNZ                                                    ~17, ->2
    4    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.93 ms | 1396 KiB | 17 Q