3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1392 KiB | 19 Q