3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = strtotime(date('Y-m').'-01'); echo date('Y-m-d',$time); echo '<br>'.$final = date("Y-t-d", strtotime("-1 month", $time)); echo date('m-01-Y 00:00:00',strtotime('this month')) . '<br/>'; echo date('m-t-Y 12:59:59',strtotime('this month')) . '<br/>'; echo '<br>'.$current_month_start_day = strtotime(date('Y-m').'-01'); echo '<br>'.$prev_month_start_day = date("d.m.Y", strtotime("-1 month", $current_month_start_day)); echo '<br>'.$_REQUEST['date_start'] = date("d.m.Y", $current_month_day); // 01.12.2013 echo '<br>'.$_EQUEST['date_end'] = date("t.m.Y", strtotime(date())); // 31.12.2013
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NA7sU
function name:  (null)
number of ops:  86
compiled vars:  !0 = $time, !1 = $final, !2 = $current_month_start_day, !3 = $prev_month_start_day, !4 = $current_month_day, !5 = $_EQUEST
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m'
          3        DO_ICALL                                         $6      
          4        CONCAT                                           ~7      $6, '-01'
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !0, $8
    3     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $10     
         12        ECHO                                                     $10
    4    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-t-d'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '-1+month'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                         $12     
         21        ASSIGN                                           ~13     !1, $12
         22        CONCAT                                           ~14     '%3Cbr%3E', ~13
         23        ECHO                                                     ~14
    6    24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'm-01-Y+00%3A00%3A00'
         26        INIT_FCALL                                               'strtotime'
         27        SEND_VAL                                                 'this+month'
         28        DO_ICALL                                         $15     
         29        SEND_VAR                                                 $15
         30        DO_ICALL                                         $16     
         31        CONCAT                                           ~17     $16, '%3Cbr%2F%3E'
         32        ECHO                                                     ~17
    7    33        INIT_FCALL                                               'date'
         34        SEND_VAL                                                 'm-t-Y+12%3A59%3A59'
         35        INIT_FCALL                                               'strtotime'
         36        SEND_VAL                                                 'this+month'
         37        DO_ICALL                                         $18     
         38        SEND_VAR                                                 $18
         39        DO_ICALL                                         $19     
         40        CONCAT                                           ~20     $19, '%3Cbr%2F%3E'
         41        ECHO                                                     ~20
   10    42        INIT_FCALL                                               'strtotime'
         43        INIT_FCALL                                               'date'
         44        SEND_VAL                                                 'Y-m'
         45        DO_ICALL                                         $21     
         46        CONCAT                                           ~22     $21, '-01'
         47        SEND_VAL                                                 ~22
         48        DO_ICALL                                         $23     
         49        ASSIGN                                           ~24     !2, $23
         50        CONCAT                                           ~25     '%3Cbr%3E', ~24
         51        ECHO                                                     ~25
   11    52        INIT_FCALL                                               'date'
         53        SEND_VAL                                                 'd.m.Y'
         54        INIT_FCALL                                               'strtotime'
         55        SEND_VAL                                                 '-1+month'
         56        SEND_VAR                                                 !2
         57        DO_ICALL                                         $26     
         58        SEND_VAR                                                 $26
         59        DO_ICALL                                         $27     
         60        ASSIGN                                           ~28     !3, $27
         61        CONCAT                                           ~29     '%3Cbr%3E', ~28
         62        ECHO                                                     ~29
   13    63        INIT_FCALL                                               'date'
         64        SEND_VAL                                                 'd.m.Y'
         65        SEND_VAR                                                 !4
         66        DO_ICALL                                         $32     
         67        FETCH_W                      global              $30     '_REQUEST'
         68        ASSIGN_DIM                                       ~31     $30, 'date_start'
         69        OP_DATA                                                  $32
         70        CONCAT                                           ~33     '%3Cbr%3E', ~31
         71        ECHO                                                     ~33
   14    72        INIT_FCALL                                               'date'
         73        SEND_VAL                                                 't.m.Y'
         74        INIT_FCALL                                               'strtotime'
         75        INIT_FCALL                                               'date'
         76        DO_ICALL                                         $35     
         77        SEND_VAR                                                 $35
         78        DO_ICALL                                         $36     
         79        SEND_VAR                                                 $36
         80        DO_ICALL                                         $37     
         81        ASSIGN_DIM                                       ~34     !5, 'date_end'
         82        OP_DATA                                                  $37
         83        CONCAT                                           ~38     '%3Cbr%3E', ~34
         84        ECHO                                                     ~38
         85      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.73 ms | 1392 KiB | 17 Q