3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datee = "2017-07-17"; $timestamp = strtotime($datee); $day = date('l', $timestamp); $week = date('w', $timestamp); echo $day; echo $week;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KFFsp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $datee, !1 = $timestamp, !2 = $day, !3 = $week
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2017-07-17'
    4     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'l'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    6    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'w'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
    7    15        ECHO                                                     !2
    8    16        ECHO                                                     !3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.73 ms | 1399 KiB | 17 Q