3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.5 ms | 1395 KiB | 17 Q