3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yr="2013"; $week="01"; $day="02"; $day=date("D",strtotime($day)); $newdate= date("Y-m-d", strtotime($yr."W".$week));; echo $newdate; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rt31Q
function name:  (null)
number of ops:  23
compiled vars:  !0 = $yr, !1 = $week, !2 = $day, !3 = $newdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2013'
    3     1        ASSIGN                                                   !1, '01'
    4     2        ASSIGN                                                   !2, '02'
    5     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'D'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $7      
          8        SEND_VAR                                                 $7
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    6    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d'
         13        INIT_FCALL                                               'strtotime'
         14        CONCAT                                           ~10     !0, 'W'
         15        CONCAT                                           ~11     ~10, !1
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                         $12     
         18        SEND_VAR                                                 $12
         19        DO_ICALL                                         $13     
         20        ASSIGN                                                   !3, $13
    7    21        ECHO                                                     !3
    9    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.97 ms | 1395 KiB | 17 Q