3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime(); $dur = new DateInterval('P1D'); for ($i=0; $i < 100; $i++) { $dt->add($dur); echo $dt->format('Y-m-d H') . "\n"; }
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 = 9
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
Branch analysis from position: 9
filename:       /in/OMURg
function name:  (null)
number of ops:  21
compiled vars:  !0 = $dt, !1 = $dur, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        NEW                                              $6      'DateInterval'
          4        SEND_VAL_EX                                              'P1D'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    4     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->18
    5     9    >   INIT_METHOD_CALL                                         !0, 'add'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
    6    12        INIT_METHOD_CALL                                         !0, 'format'
         13        SEND_VAL_EX                                              'Y-m-d+H'
         14        DO_FCALL                                      0  $11     
         15        CONCAT                                           ~12     $11, '%0A'
         16        ECHO                                                     ~12
    4    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, 100
         19      > JMPNZ                                                    ~14, ->9
    7    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.27 ms | 1393 KiB | 13 Q