3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "2013-04-01 00:00:00"; echo $date . " " . " +1 month ".date('d/m/Y', strtotime('+1 month', strtotime($date)))." \n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3rTY7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2013-04-01+00%3A00%3A00'
    3     1        CONCAT                                           ~2      !0, '+++'
          2        CONCAT                                           ~3      ~2, '+%2B1+month+++++'
          3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'd%2Fm%2FY'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '%2B1+month'
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        CONCAT                                           ~7      ~3, $6
         15        CONCAT                                           ~8      ~7, '+%0A'
         16        ECHO                                                     ~8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.58 ms | 1394 KiB | 17 Q