3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Mdcnt = array("0","31","28","31","30","31","30","31","31","30","31","30","31"); for($i=20140329 ; $i<=20140402;$i++){ $year = substr($i,0,4); $mon = intval(substr($i,4,2)); $day = intval(substr($i,6,2)); print $mon . " - " .$day."\n"; if($mon >13 or $mon < 1) continue; if($day > $Mdcnt[$mon] or $day < 1) continue; $days = sprintf("%04d%02d%02d",$year,$mon,$day); print $days."\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 3
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 3
Branch analysis from position: 52
Branch analysis from position: 3
Branch analysis from position: 33
2 jumps found. (Code = 47) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 3
Branch analysis from position: 52
Branch analysis from position: 3
Branch analysis from position: 38
Branch analysis from position: 31
filename:       /in/FrGGK
function name:  (null)
number of ops:  53
compiled vars:  !0 = $Mdcnt, !1 = $i, !2 = $year, !3 = $mon, !4 = $day, !5 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 20140329
          2      > JMP                                                      ->50
    6     3    >   INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 4
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
    7     9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 4
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $10     
         14        CAST                                          4  ~11     $10
         15        ASSIGN                                                   !3, ~11
    8    16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 6
         19        SEND_VAL                                                 2
         20        DO_ICALL                                         $13     
         21        CAST                                          4  ~14     $13
         22        ASSIGN                                                   !4, ~14
    9    23        CONCAT                                           ~16     !3, '+-+'
         24        CONCAT                                           ~17     ~16, !4
         25        CONCAT                                           ~18     ~17, '%0A'
         26        ECHO                                                     ~18
   10    27        IS_SMALLER                                       ~19     13, !3
         28      > JMPNZ_EX                                         ~19     ~19, ->31
         29    >   IS_SMALLER                                       ~20     !3, 1
         30        BOOL                                             ~19     ~20
         31    > > JMPZ                                                     ~19, ->33
         32    > > JMP                                                      ->49
   11    33    >   FETCH_DIM_R                                      ~21     !0, !3
         34        IS_SMALLER                                       ~22     ~21, !4
         35      > JMPNZ_EX                                         ~22     ~22, ->38
         36    >   IS_SMALLER                                       ~23     !4, 1
         37        BOOL                                             ~22     ~23
         38    > > JMPZ                                                     ~22, ->40
         39    > > JMP                                                      ->49
   13    40    >   INIT_FCALL                                               'sprintf'
         41        SEND_VAL                                                 '%2504d%2502d%2502d'
         42        SEND_VAR                                                 !2
         43        SEND_VAR                                                 !3
         44        SEND_VAR                                                 !4
         45        DO_ICALL                                         $24     
         46        ASSIGN                                                   !5, $24
   15    47        CONCAT                                           ~26     !5, '%0A'
         48        ECHO                                                     ~26
    5    49    >   PRE_INC                                                  !1
         50    >   IS_SMALLER_OR_EQUAL                                      !1, 20140402
         51      > JMPNZ                                                    ~28, ->3
   20    52    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.04 ms | 1400 KiB | 17 Q