3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.28 ms | 1394 KiB | 19 Q