3v4l.org

run code in 300+ PHP versions simultaneously
<?php $todayDate = date("2011-01-31"); //Add one day to today $dateOneMonthAdded = strtotime(date("Y-m-d", strtotime($todayDate)) . "+1 month"); echo "After adding one month: ".date('Y-m-d', $dateOneMonthAdded)."<br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Iof0
function name:  (null)
number of ops:  24
compiled vars:  !0 = $todayDate, !1 = $dateOneMonthAdded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 '2011-01-31'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'strtotime'
          5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d'
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        CONCAT                                           ~6      $5, '%2B1+month'
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
    7    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $9      
         20        CONCAT                                           ~10     'After+adding+one+month%3A+', $9
         21        CONCAT                                           ~11     ~10, '%3Cbr%3E'
         22        ECHO                                                     ~11
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.92 ms | 1395 KiB | 17 Q