3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime; for ($w = 52; $w <= 54; $w++) { $dt->setISODate(2013, $w); echo $dt->format('Y-m-d W') . "\n\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 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
filename:       /in/5Dg31
function name:  (null)
number of ops:  18
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                                                      ->15
    5     5    >   INIT_METHOD_CALL                                         !0, 'setISODate'
          6        SEND_VAL_EX                                              2013
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
    6     9        INIT_METHOD_CALL                                         !0, 'format'
         10        SEND_VAL_EX                                              'Y-m-d+W'
         11        DO_FCALL                                      0  $7      
         12        CONCAT                                           ~8      $7, '%0A%0A'
         13        ECHO                                                     ~8
    4    14        PRE_INC                                                  !1
         15    >   IS_SMALLER_OR_EQUAL                                      !1, 54
         16      > JMPNZ                                                    ~10, ->5
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.13 ms | 1393 KiB | 13 Q