3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.59 ms | 1451 KiB | 14 Q