3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('Month' => 07, 'Year' => 2014); $daysCount = cal_days_in_month(CAL_GREGORIAN, $array['Month'], $array['Year']); //obtain month days count $firstDay = mktime(0, 0, 0, $array['Month'], 1, $array['Year']); //obtain timestamp of specified month first day $lastDay = mktime(0, 0, 0, $array['Month'], $daysCount, $array['Year']); //obtain timestamp of specified month last day echo 'First: '.$firstDay.' Last: '.$lastDay; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N5tr1
function name:  (null)
number of ops:  39
compiled vars:  !0 = $array, !1 = $daysCount, !2 = $firstDay, !3 = $lastDay
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL_BY_NAME                                       'cal_days_in_month'
          2        FETCH_CONSTANT                                   ~5      'CAL_GREGORIAN'
          3        SEND_VAL_EX                                              ~5
          4        CHECK_FUNC_ARG                                           
          5        FETCH_DIM_FUNC_ARG                               $6      !0, 'Month'
          6        SEND_FUNC_ARG                                            $6
          7        CHECK_FUNC_ARG                                           
          8        FETCH_DIM_FUNC_ARG                               $7      !0, 'Year'
          9        SEND_FUNC_ARG                                            $7
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !1, $8
    6    12        INIT_FCALL                                               'mktime'
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 0
         16        FETCH_DIM_R                                      ~10     !0, 'Month'
         17        SEND_VAL                                                 ~10
         18        SEND_VAL                                                 1
         19        FETCH_DIM_R                                      ~11     !0, 'Year'
         20        SEND_VAL                                                 ~11
         21        DO_ICALL                                         $12     
         22        ASSIGN                                                   !2, $12
    7    23        INIT_FCALL                                               'mktime'
         24        SEND_VAL                                                 0
         25        SEND_VAL                                                 0
         26        SEND_VAL                                                 0
         27        FETCH_DIM_R                                      ~14     !0, 'Month'
         28        SEND_VAL                                                 ~14
         29        SEND_VAR                                                 !1
         30        FETCH_DIM_R                                      ~15     !0, 'Year'
         31        SEND_VAL                                                 ~15
         32        DO_ICALL                                         $16     
         33        ASSIGN                                                   !3, $16
    9    34        CONCAT                                           ~18     'First%3A+', !2
         35        CONCAT                                           ~19     ~18, '+Last%3A+'
         36        CONCAT                                           ~20     ~19, !3
         37        ECHO                                                     ~20
   10    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1396 KiB | 15 Q