3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$d = new DateTime( '2010-01-31' ); //$d->modify( 'first day of next month' ); $day=strtotime( 'last day of +1 month', time()); echo $day->toString('yyyy-MM-dd');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fvLPB
function name:  (null)
number of ops:  12
compiled vars:  !0 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'last+day+of+%2B1+month'
          2        INIT_FCALL                                               'time'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    5     7        INIT_METHOD_CALL                                         !0, 'toString'
          8        SEND_VAL_EX                                              'yyyy-MM-dd'
          9        DO_FCALL                                      0  $4      
         10        ECHO                                                     $4
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.16 ms | 1398 KiB | 17 Q