3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstDay = new DateTime('first day of this month'); $lastDay = new DateTime('last day of this month'); echo $firstDay->format(DateTime::RFC2822); echo "<br/>"; echo $lastDay->format(DateTime::RFC2822);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t9H73
function name:  (null)
number of ops:  18
compiled vars:  !0 = $firstDay, !1 = $lastDay
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              'first+day+of+this+month'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              'last+day+of+this+month'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'D%2C+d+M+Y+H%3Ai%3As+O'
         10        DO_FCALL                                      0  $8      
         11        ECHO                                                     $8
    7    12        ECHO                                                     '%3Cbr%2F%3E'
    8    13        INIT_METHOD_CALL                                         !1, 'format'
         14        SEND_VAL_EX                                              'D%2C+d+M+Y+H%3Ai%3As+O'
         15        DO_FCALL                                      0  $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.89 ms | 1384 KiB | 13 Q