3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = strtotime('20016-02-05'); $end = strtotime('2016-04-05'); $start_m = new DateTime($_GET["fecha1"]); $end_m = new DateTime($_GET["fecha2"]); $start_m->modify('first day of this month'); $end_m->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start_m, $interval, $end_m); print_r($date_range_m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/imXRG
function name:  (null)
number of ops:  42
compiled vars:  !0 = $start, !1 = $end, !2 = $start_m, !3 = $end_m, !4 = $interval, !5 = $period, !6 = $date_range_m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '20016-02-05'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2016-04-05'
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !1, $9
    5     8        NEW                                              $11     'DateTime'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_FUNC_ARG               global              $12     '_GET'
         11        FETCH_DIM_FUNC_ARG                               $13     $12, 'fecha1'
         12        SEND_FUNC_ARG                                            $13
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $11
    6    15        NEW                                              $16     'DateTime'
         16        CHECK_FUNC_ARG                                           
         17        FETCH_FUNC_ARG               global              $17     '_GET'
         18        FETCH_DIM_FUNC_ARG                               $18     $17, 'fecha2'
         19        SEND_FUNC_ARG                                            $18
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !3, $16
    7    22        INIT_METHOD_CALL                                         !2, 'modify'
         23        SEND_VAL_EX                                              'first+day+of+this+month'
         24        DO_FCALL                                      0          
    8    25        INIT_METHOD_CALL                                         !3, 'modify'
         26        SEND_VAL_EX                                              'first+day+of+next+month'
         27        DO_FCALL                                      0          
    9    28        INIT_STATIC_METHOD_CALL                                  'DateInterval', 'createFromDateString'
         29        SEND_VAL                                                 '1+month'
         30        DO_FCALL                                      0  $23     
         31        ASSIGN                                                   !4, $23
   10    32        NEW                                              $25     'DatePeriod'
         33        SEND_VAR_EX                                              !2
         34        SEND_VAR_EX                                              !4
         35        SEND_VAR_EX                                              !3
         36        DO_FCALL                                      0          
         37        ASSIGN                                                   !5, $25
   13    38        INIT_FCALL                                               'print_r'
         39        SEND_VAR                                                 !6
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.64 ms | 1396 KiB | 17 Q