3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = DateTime::createFromFormat('U', 1364770800); $end = DateTime::createFromFormat('U', 1365289200); for($dt=$start, $f=0;$f<7;$f++){ $dt->add(new DateInterval("P1D")); var_dump($dt); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
Branch analysis from position: 13
filename:       /in/0Tfoi
function name:  (null)
number of ops:  26
compiled vars:  !0 = $start, !1 = $end, !2 = $dt, !3 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'U'
          2        SEND_VAL                                                 1364770800
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !0, $4
    3     5        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          6        SEND_VAL                                                 'U'
          7        SEND_VAL                                                 1365289200
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !1, $6
    5    10        ASSIGN                                                   !2, !0
         11        ASSIGN                                                   !3, 0
         12      > JMP                                                      ->23
    6    13    >   INIT_METHOD_CALL                                         !2, 'add'
         14        NEW                                              $10     'DateInterval'
         15        SEND_VAL_EX                                              'P1D'
         16        DO_FCALL                                      0          
         17        SEND_VAR_NO_REF_EX                                       $10
         18        DO_FCALL                                      0          
    7    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
    5    22        PRE_INC                                                  !3
         23    >   IS_SMALLER                                               !3, 7
         24      > JMPNZ                                                    ~15, ->13
    9    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.61 ms | 1395 KiB | 15 Q