3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_day_start = date('Y-m-d', strtotime($date_requested . "-1 day")); $date_month_start = date("Y-m-t", strtotime($date_requested . "-1 month")); $date_year_start = date("Y-01-01", strtotime($date_requested)); $date_end = date('Y-m-d', strtotime($date_requested . "+1 day")); echo "periods: $date_day_start - $date_end | $date_month_start | $date_year_start";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I5eTn
function name:  (null)
number of ops:  45
compiled vars:  !0 = $date_day_start, !1 = $date_requested, !2 = $date_month_start, !3 = $date_year_start, !4 = $date_end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        CONCAT                                           ~5      !1, '-1+day'
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !0, $7
    5     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-t'
         11        INIT_FCALL                                               'strtotime'
         12        CONCAT                                           ~9      !1, '-1+month'
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !2, $11
    6    18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'Y-01-01'
         20        INIT_FCALL                                               'strtotime'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $13     
         23        SEND_VAR                                                 $13
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !3, $14
    8    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'Y-m-d'
         28        INIT_FCALL                                               'strtotime'
         29        CONCAT                                           ~16     !1, '%2B1+day'
         30        SEND_VAL                                                 ~16
         31        DO_ICALL                                         $17     
         32        SEND_VAR                                                 $17
         33        DO_ICALL                                         $18     
         34        ASSIGN                                                   !4, $18
    9    35        ROPE_INIT                                     8  ~21     'periods%3A+'
         36        ROPE_ADD                                      1  ~21     ~21, !0
         37        ROPE_ADD                                      2  ~21     ~21, '+-+'
         38        ROPE_ADD                                      3  ~21     ~21, !4
         39        ROPE_ADD                                      4  ~21     ~21, '+%7C+'
         40        ROPE_ADD                                      5  ~21     ~21, !2
         41        ROPE_ADD                                      6  ~21     ~21, '+%7C+'
         42        ROPE_END                                      7  ~20     ~21, !3
         43        ECHO                                                     ~20
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.92 ms | 1405 KiB | 17 Q