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->getTimestamp(); echo "<br/>"; echo $lastDay->getTimestamp();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/shqXq
function name:  (null)
number of ops:  16
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, 'getTimestamp'
          9        DO_FCALL                                      0  $8      
         10        ECHO                                                     $8
    7    11        ECHO                                                     '%3Cbr%2F%3E'
    8    12        INIT_METHOD_CALL                                         !1, 'getTimestamp'
         13        DO_FCALL                                      0  $9      
         14        ECHO                                                     $9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.8 ms | 1393 KiB | 13 Q