3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = clone $last = new \DateTime(date('d-m-Y',time())); //this being todays date 21-03-2017 $first->modify('first day of this month'); var_dump($first); $last->modify('last day of this month'); var_dump($last);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rO7Zd
function name:  (null)
number of ops:  25
compiled vars:  !0 = $first, !1 = $last
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'd-m-Y'
          3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9        ASSIGN                                           ~6      !1, $2
         10        CLONE                                            ~7      ~6
         11        ASSIGN                                                   !0, ~7
    5    12        INIT_METHOD_CALL                                         !0, 'modify'
         13        SEND_VAL_EX                                              'first+day+of+this+month'
         14        DO_FCALL                                      0          
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    8    18        INIT_METHOD_CALL                                         !1, 'modify'
         19        SEND_VAL_EX                                              'last+day+of+this+month'
         20        DO_FCALL                                      0          
    9    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.03 ms | 1399 KiB | 19 Q