3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.81 ms | 1392 KiB | 13 Q