3v4l.org

run code in 300+ PHP versions simultaneously
<?php $daysCount = 2; $daysOffset = 1; for ($i = $daysOffset; $i < $daysCount; $i++) { // echo date('Y-m-d H:i:s \U\T\C', strtotime('-1 days 04:00')); echo date('Y-m-d H:i:s \U\T\C', strtotime( "-$i days 04:00")) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
filename:       /in/8QI32
function name:  (null)
number of ops:  20
compiled vars:  !0 = $daysCount, !1 = $daysOffset, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    4     1        ASSIGN                                                   !1, 1
    6     2        ASSIGN                                                   !2, !1
          3      > JMP                                                      ->17
    8     4    >   INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d+H%3Ai%3As+%5CU%5CT%5CC'
          6        INIT_FCALL                                               'strtotime'
          7        ROPE_INIT                                     3  ~7      '-'
          8        ROPE_ADD                                      1  ~7      ~7, !2
          9        ROPE_END                                      2  ~6      ~7, '+days+04%3A00'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                         $10     
         14        CONCAT                                           ~11     $10, '%0A'
         15        ECHO                                                     ~11
    6    16        PRE_INC                                                  !2
         17    >   IS_SMALLER                                               !2, !0
         18      > JMPNZ                                                    ~13, ->4
   10    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.34 ms | 1395 KiB | 17 Q