3v4l.org

run code in 300+ PHP versions simultaneously
<?php $daysCount = 2; $daysOffset = 1; $daysCount += $daysOffset; for ($i = 0; $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 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
Branch analysis from position: 5
filename:       /in/Lg3NI
function name:  (null)
number of ops:  21
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_OP                                     1          !0, !1
    7     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->18
    9     5    >   INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d+H%3Ai%3As+%5CU%5CT%5CC'
          7        INIT_FCALL                                               'strtotime'
          8        ROPE_INIT                                     3  ~8      '-'
          9        ROPE_ADD                                      1  ~8      ~8, !2
         10        ROPE_END                                      2  ~7      ~8, '+days+04%3A00'
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $10     
         13        SEND_VAR                                                 $10
         14        DO_ICALL                                         $11     
         15        CONCAT                                           ~12     $11, '%0A'
         16        ECHO                                                     ~12
    7    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, !0
         19      > JMPNZ                                                    ~14, ->5
   11    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.37 ms | 1386 KiB | 17 Q