3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1393 KiB | 13 Q