3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('2013-02-28', strtotime(date('Y-m-d').' + 1 month')); echo '<br>'; echo date('Y-m-d', strtotime(date('Y-m-d').' + 2 month')); echo '<br>'; echo date('Y-m-d', strtotime(date('Y-m-d').' + 3 month'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pWUhS
function name:  (null)
number of ops:  39
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 '2013-02-28'
          2        INIT_FCALL                                               'strtotime'
          3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d'
          5        DO_ICALL                                         $0      
          6        CONCAT                                           ~1      $0, '+%2B+1+month'
          7        SEND_VAL                                                 ~1
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
    4    12        ECHO                                                     '%3Cbr%3E'
    5    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        INIT_FCALL                                               'strtotime'
         16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d'
         18        DO_ICALL                                         $4      
         19        CONCAT                                           ~5      $4, '+%2B+2+month'
         20        SEND_VAL                                                 ~5
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                         $7      
         24        ECHO                                                     $7
    6    25        ECHO                                                     '%3Cbr%3E'
    7    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'Y-m-d'
         28        INIT_FCALL                                               'strtotime'
         29        INIT_FCALL                                               'date'
         30        SEND_VAL                                                 'Y-m-d'
         31        DO_ICALL                                         $8      
         32        CONCAT                                           ~9      $8, '+%2B+3+month'
         33        SEND_VAL                                                 ~9
         34        DO_ICALL                                         $10     
         35        SEND_VAR                                                 $10
         36        DO_ICALL                                         $11     
         37        ECHO                                                     $11
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.86 ms | 1388 KiB | 17 Q