3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = "2016-01-30"; $date = date('Y-m-d', strtotime("last day of next month",strtotime($date))); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y9PpV
function name:  (null)
number of ops:  15
compiled vars:  !0 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '2016-01-30'
    4     1        INIT_FCALL                                                   'date'
          2        SEND_VAL                                                     'Y-m-d'
          3        INIT_FCALL                                                   'strtotime'
          4        SEND_VAL                                                     'last+day+of+next+month'
          5        INIT_FCALL                                                   'strtotime'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $2      
          8        SEND_VAR                                                     $2
          9        DO_ICALL                                             $3      
         10        SEND_VAR                                                     $3
         11        DO_ICALL                                             $4      
         12        ASSIGN                                                       !0, $4
    5    13        ECHO                                                         !0
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.42 ms | 2486 KiB | 15 Q