3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentMonth = date("n"); $currentYear = date("Y"); echo $currentMonth . "\n"; echo $currentYear . "\n"; $month = $currentMonth; $year = $currentYear; $firstDayOfTheMonth = mktime(0, 0, 0, $month, 1, $year); $d = getdate($firstDayOfTheMonth); // Vasarnap helyett hetfo az elso nap a heten. $dayOfTheWeekOfFirstDayOfTheMonth = (6 + $d["wday"]) % 7 + 1; $totalDaysInCurrentMonth = date("t"); $kellenekUresNapokAHonapVegen = true; echo $firstDayOfTheMonth . "firstDayOfTheMonth\n"; //echo $d . "d\n"; echo $dayOfTheWeekOfFirstDayOfTheMonth . "dayOfTheWeekOfFirstDayOfTheMonth\n"; echo $totalDaysInCurrentMonth . "totalDaysInCurrentMonth\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7ZdjZ
function name:  (null)
number of ops:  44
compiled vars:  !0 = $currentMonth, !1 = $currentYear, !2 = $month, !3 = $year, !4 = $firstDayOfTheMonth, !5 = $d, !6 = $dayOfTheWeekOfFirstDayOfTheMonth, !7 = $totalDaysInCurrentMonth, !8 = $kellenekUresNapokAHonapVegen
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'n'
          2        DO_ICALL                                         $9      
          3        ASSIGN                                                   !0, $9
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y'
          6        DO_ICALL                                         $11     
          7        ASSIGN                                                   !1, $11
    4     8        CONCAT                                           ~13     !0, '%0A'
          9        ECHO                                                     ~13
    5    10        CONCAT                                           ~14     !1, '%0A'
         11        ECHO                                                     ~14
    7    12        ASSIGN                                                   !2, !0
    8    13        ASSIGN                                                   !3, !1
   10    14        INIT_FCALL                                               'mktime'
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 0
         18        SEND_VAR                                                 !2
         19        SEND_VAL                                                 1
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $17     
         22        ASSIGN                                                   !4, $17
   11    23        INIT_FCALL                                               'getdate'
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                         $19     
         26        ASSIGN                                                   !5, $19
   13    27        FETCH_DIM_R                                      ~21     !5, 'wday'
         28        ADD                                              ~22     6, ~21
         29        MOD                                              ~23     ~22, 7
         30        ADD                                              ~24     ~23, 1
         31        ASSIGN                                                   !6, ~24
   14    32        INIT_FCALL                                               'date'
         33        SEND_VAL                                                 't'
         34        DO_ICALL                                         $26     
         35        ASSIGN                                                   !7, $26
   15    36        ASSIGN                                                   !8, <true>
   17    37        CONCAT                                           ~29     !4, 'firstDayOfTheMonth%0A'
         38        ECHO                                                     ~29
   19    39        CONCAT                                           ~30     !6, 'dayOfTheWeekOfFirstDayOfTheMonth%0A'
         40        ECHO                                                     ~30
   20    41        CONCAT                                           ~31     !7, 'totalDaysInCurrentMonth%0A'
         42        ECHO                                                     ~31
   21    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.91 ms | 1400 KiB | 19 Q