3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $date = date('Y-m-d'); $a = date('Y-m-d', strtotime('+1 month', $date)); echo $a; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5NFhd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
    6     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    7     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d'
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '%2B1+month'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    8    14        ECHO                                                     !1
   11    15        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.9 ms | 1394 KiB | 17 Q