3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.69 ms | 1393 KiB | 13 Q