3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.47 ms | 1396 KiB | 19 Q