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 = 46
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 3
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 3
Branch analysis from position: 48
Branch analysis from position: 3
Branch analysis from position: 29
2 jumps found. (Code = 47) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 3
Branch analysis from position: 48
Branch analysis from position: 3
Branch analysis from position: 34
Branch analysis from position: 27
filename:       /in/S000s
function name:  (null)
number of ops:  49
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                                                      ->46
    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
   10    23        IS_SMALLER                                       ~16     13, !3
         24      > JMPNZ_EX                                         ~16     ~16, ->27
         25    >   IS_SMALLER                                       ~17     !3, 1
         26        BOOL                                             ~16     ~17
         27    > > JMPZ                                                     ~16, ->29
         28    > > JMP                                                      ->45
   11    29    >   FETCH_DIM_R                                      ~18     !0, !3
         30        IS_SMALLER                                       ~19     ~18, !4
         31      > JMPNZ_EX                                         ~19     ~19, ->34
         32    >   IS_SMALLER                                       ~20     !4, 1
         33        BOOL                                             ~19     ~20
         34    > > JMPZ                                                     ~19, ->36
         35    > > JMP                                                      ->45
   13    36    >   INIT_FCALL                                               'sprintf'
         37        SEND_VAL                                                 '%2504d%2502d%2502d'
         38        SEND_VAR                                                 !2
         39        SEND_VAR                                                 !3
         40        SEND_VAR                                                 !4
         41        DO_ICALL                                         $21     
         42        ASSIGN                                                   !5, $21
   15    43        CONCAT                                           ~23     !5, '%0A'
         44        ECHO                                                     ~23
    5    45    >   PRE_INC                                                  !1
         46    >   IS_SMALLER_OR_EQUAL                                      !1, 20140402
         47      > JMPNZ                                                    ~25, ->3
   20    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.67 ms | 1400 KiB | 17 Q