3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.01 ms | 1396 KiB | 19 Q