3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.21 ms | 1395 KiB | 17 Q