3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.86 ms | 1395 KiB | 17 Q