3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yr = "2014"; $week = "01"; $day = date("N", strtotime("Monday")); // 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/EllgQ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $yr, !1 = $week, !2 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014'
    3     1        ASSIGN                                                   !1, '01'
    4     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'N'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'Monday'
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    5    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d'
         12        INIT_FCALL                                               'strtotime'
         13        CONCAT                                           ~8      !0, 'W'
         14        CONCAT                                           ~9      ~8, !1
         15        CONCAT                                           ~10     ~9, !2
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                         $11     
         18        SEND_VAR                                                 $11
         19        DO_ICALL                                         $12     
         20        ECHO                                                     $12
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.89 ms | 1395 KiB | 17 Q