3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dd = 2; echo date('Y-m-d', strtotime("+$dd months"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y02eQ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'strtotime'
          4        ROPE_INIT                                     3  ~3      '%2B'
          5        ROPE_ADD                                      1  ~3      ~3, !0
          6        ROPE_END                                      2  ~2      ~3, '+months'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.79 ms | 1394 KiB | 17 Q