3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $t = time() - 24*60*60; $t1 = strtotime("next month", $t); $t2 = strtotime("first day of next month", $t); echo date("d.m.Y", $t) . ": $t\n"; echo date("d.m.Y", $t1) . ": $t1\n"; echo date("d.m.Y", $t2) . ": $t2\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tjHmn
function name:  (null)
number of ops:  45
compiled vars:  !0 = $t, !1 = $t1, !2 = $t2
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                                         $4      
          5        SUB                                              ~5      $4, 86400
          6        ASSIGN                                                   !0, ~5
    6     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 'next+month'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    7    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'first+day+of+next+month'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !2, $9
    9    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'd.m.Y'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $11     
         21        ROPE_INIT                                     3  ~13     '%3A+'
         22        ROPE_ADD                                      1  ~13     ~13, !0
         23        ROPE_END                                      2  ~12     ~13, '%0A'
         24        CONCAT                                           ~15     $11, ~12
         25        ECHO                                                     ~15
   10    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'd.m.Y'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                         $16     
         30        ROPE_INIT                                     3  ~18     '%3A+'
         31        ROPE_ADD                                      1  ~18     ~18, !1
         32        ROPE_END                                      2  ~17     ~18, '%0A'
         33        CONCAT                                           ~20     $16, ~17
         34        ECHO                                                     ~20
   11    35        INIT_FCALL                                               'date'
         36        SEND_VAL                                                 'd.m.Y'
         37        SEND_VAR                                                 !2
         38        DO_ICALL                                         $21     
         39        ROPE_INIT                                     3  ~23     '%3A+'
         40        ROPE_ADD                                      1  ~23     ~23, !2
         41        ROPE_END                                      2  ~22     ~23, '%0A'
         42        CONCAT                                           ~25     $21, ~22
         43        ECHO                                                     ~25
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.82 ms | 1400 KiB | 21 Q