3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $t = time() - 24*60*60; echo date("01.m.Y", strtotime("next month", $t)); echo "\n"; echo date("d.m.Y", strtotime("first day of next month", $t));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AQYUB
function name:  (null)
number of ops:  27
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FPrague'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $2      
          5        SUB                                              ~3      $2, 86400
          6        ASSIGN                                                   !0, ~3
    8     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 '01.m.Y'
          9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 'next+month'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
    9    16        ECHO                                                     '%0A'
   10    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'd.m.Y'
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 'first+day+of+next+month'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $7      
         23        SEND_VAR                                                 $7
         24        DO_ICALL                                         $8      
         25        ECHO                                                     $8
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.45 ms | 1400 KiB | 21 Q