3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yr="2011"; $week="01"; $day="mon"; echo date("Y-m-d", strtotime($yr."W".$week."D ".$day));; echo date("D",$day); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P1g2L
function name:  (null)
number of ops:  21
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, 'mon'
    5     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, 'D+'
          9        CONCAT                                           ~9      ~8, !2
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                         $10     
         12        SEND_VAR                                                 $10
         13        DO_ICALL                                         $11     
         14        ECHO                                                     $11
    6    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'D'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $12     
         19        ECHO                                                     $12
    7    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.87 ms | 1395 KiB | 17 Q