3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.99 ms | 2886 KiB | 15 Q