3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime("2014-01-31"); echo date('Y/m/d', strtotime('last day of month after '.date('F', $timestamp).' '.date('Y', $timestamp)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbgpK
function name:  (null)
number of ops:  24
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2014-01-31'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y%2Fm%2Fd'
          6        INIT_FCALL                                               'strtotime'
          7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'F'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        CONCAT                                           ~4      'last+day+of+month+after+', $3
         12        CONCAT                                           ~5      ~4, '+'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        CONCAT                                           ~7      ~5, $6
         18        SEND_VAL                                                 ~7
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                         $9      
         22        ECHO                                                     $9
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.11 ms | 1395 KiB | 17 Q