3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //mai dátum $query_date =date("Y-m-d"); //az év első napjának dátuma $first_d_year = date('Y-01-01', strtotime($query_date)); //előző hónap első napja $lastmonth = mktime(0, 0, 0, date("m")-1, date("01"), date("Y")); echo $lastmonth; //előző hónap vége ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/oI4ec
function name:  (null)
number of ops:  33
compiled vars:  !0 = $query_date, !1 = $first_d_year, !2 = $lastmonth
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'date'
         1        SEND_VAL                                                 'Y-m-d'
         2        DO_ICALL                                         $3      
         3        ASSIGN                                                   !0, $3
   7     4        INIT_FCALL                                               'date'
         5        SEND_VAL                                                 'Y-01-01'
         6        INIT_FCALL                                               'strtotime'
         7        SEND_VAR                                                 !0
         8        DO_ICALL                                         $5      
         9        SEND_VAR                                                 $5
        10        DO_ICALL                                         $6      
        11        ASSIGN                                                   !1, $6
  11    12        INIT_FCALL                                               'mktime'
        13        SEND_VAL                                                 0
        14        SEND_VAL                                                 0
        15        SEND_VAL                                                 0
        16        INIT_FCALL                                               'date'
        17        SEND_VAL                                                 'm'
        18        DO_ICALL                                         $8      
        19        SUB                                              ~9      $8, 1
        20        SEND_VAL                                                 ~9
        21        INIT_FCALL                                               'date'
        22        SEND_VAL                                                 '01'
        23        DO_ICALL                                         $10     
        24        SEND_VAR                                                 $10
        25        INIT_FCALL                                               'date'
        26        SEND_VAL                                                 'Y'
        27        DO_ICALL                                         $11     
        28        SEND_VAR                                                 $11
        29        DO_ICALL                                         $12     
        30        ASSIGN                                                   !2, $12
  12    31        ECHO                                                     !2
        32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0