3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d 00:00:00', strtotime('first day of last month')). PHP_EOL; echo date('Y-m-d 23:59:59', strtotime('last day of last month')) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vNPrN
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+00%3A00%3A00'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'first+day+of+last+month'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        CONCAT                                           ~2      $1, '%0A'
          8        ECHO                                                     ~2
    3     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+23%3A59%3A59'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 'last+day+of+last+month'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        CONCAT                                           ~5      $4, '%0A'
         17        ECHO                                                     ~5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.54 ms | 1394 KiB | 17 Q