3v4l.org

run code in 300+ PHP versions simultaneously
<?php $week_number = 22; $year = 2014; for($day=1; $day<=7; $day++) { echo date('m/d/Y', strtotime($year."W".str_pad($week_number,2,'0',STR_PAD_LEFT).$day))."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 4
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 4
Branch analysis from position: 25
Branch analysis from position: 4
filename:       /in/GO9oi
function name:  (null)
number of ops:  26
compiled vars:  !0 = $week_number, !1 = $year, !2 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 22
    3     1        ASSIGN                                                   !1, 2014
    4     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->23
    6     4    >   INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'm%2Fd%2FY'
          6        INIT_FCALL                                               'strtotime'
          7        CONCAT                                           ~6      !1, 'W'
          8        INIT_FCALL                                               'str_pad'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 2
         11        SEND_VAL                                                 '0'
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $7      
         14        CONCAT                                           ~8      ~6, $7
         15        CONCAT                                           ~9      ~8, !2
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     $11, '%0A'
         21        ECHO                                                     ~12
    4    22        PRE_INC                                                  !2
         23    >   IS_SMALLER_OR_EQUAL                                      !2, 7
         24      > JMPNZ                                                    ~14, ->4
    7    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.13 ms | 1395 KiB | 19 Q