3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = new DateTime(); $currentDay = $currentDate->format("j"); // Number of days in the current month $daysInMonth = $currentDate->format("t"); var_dump($currentDay); var_dump($daysInMonth);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PB4i4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $currentDate, !1 = $currentDay, !2 = $daysInMonth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_METHOD_CALL                                         !0, 'format'
          4        SEND_VAL_EX                                              'j'
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !1, $6
    7     7        INIT_METHOD_CALL                                         !0, 'format'
          8        SEND_VAL_EX                                              't'
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !2, $8
    9    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.85 ms | 1394 KiB | 15 Q