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", 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')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gD7eD
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'printf'
    4     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'
    5     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
    6    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
    7    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
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.12 ms | 1395 KiB | 19 Q