3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.15 ms | 1385 KiB | 17 Q