3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("2013-10-31, -1 month: %s\n" . "2013-10-31, first day of 1 month ago: %s\n" . "2013-10-31, first day 1 month ago: %s\n" . "2013-10-31, first day -1 month: %s", date('m', strtotime('2013-10-31 -1 month')), date('m', strtotime('2013-10-31 first day of 1 month ago')), date('m', strtotime('2013-10-31 first day 1 month ago')), date('m', strtotime('2013-10-31 first day -1 month')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d51B7
function name:  (null)
number of ops:  36
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'printf'
    5     1        SEND_VAL                                                 '2013-10-31%2C+-1+month%3A+%25s%0A2013-10-31%2C+first+day+of+1+month+ago%3A+%25s%0A2013-10-31%2C+first+day+1+month+ago%3A+%25s%0A2013-10-31%2C+first+day+-1+month%3A+%25s'
    6     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'm'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2013-10-31+-1+month'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
    7    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'm'
         12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 '2013-10-31+first+day+of+1+month+ago'
         14        DO_ICALL                                         $2      
         15        SEND_VAR                                                 $2
         16        DO_ICALL                                         $3      
         17        SEND_VAR                                                 $3
    8    18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'm'
         20        INIT_FCALL                                               'strtotime'
         21        SEND_VAL                                                 '2013-10-31+first+day+1+month+ago'
         22        DO_ICALL                                         $4      
         23        SEND_VAR                                                 $4
         24        DO_ICALL                                         $5      
         25        SEND_VAR                                                 $5
    9    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'm'
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 '2013-10-31+first+day+-1+month'
         30        DO_ICALL                                         $6      
         31        SEND_VAR                                                 $6
         32        DO_ICALL                                         $7      
         33        SEND_VAR                                                 $7
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.15 ms | 1396 KiB | 19 Q