3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime('2011-01-15 00:00:00'); $current_month = $d->format('m'); $current_day = $d->format('d'); $current_day = $current_day + 1; echo $current_day;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dflYe
function name:  (null)
number of ops:  16
compiled vars:  !0 = $d, !1 = $current_month, !2 = $current_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2011-01-15+00%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    5     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'm'
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !1, $6
    6     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'd'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
    7    12        ADD                                              ~10     !2, 1
         13        ASSIGN                                                   !2, ~10
    8    14        ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.76 ms | 1397 KiB | 13 Q