3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2013-01-04'); // jan 4 while ($date->format('Y') < 2014){ echo $date->format('Y-m-d') . PHP_EOL; $date->modify('+7 days'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
filename:       /in/QoIJW
function name:  (null)
number of ops:  19
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              '2013-01-04'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4      > JMP                                                      ->13
    5     5    >   INIT_METHOD_CALL                                         !0, 'format'
          6        SEND_VAL_EX                                              'Y-m-d'
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      $4, '%0A'
          9        ECHO                                                     ~5
    6    10        INIT_METHOD_CALL                                         !0, 'modify'
         11        SEND_VAL_EX                                              '%2B7+days'
         12        DO_FCALL                                      0          
    4    13    >   INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAL_EX                                              'Y'
         15        DO_FCALL                                      0  $7      
         16        IS_SMALLER                                               $7, 2014
         17      > JMPNZ                                                    ~8, ->5
    7    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.48 ms | 1393 KiB | 13 Q