3v4l.org

run code in 300+ PHP versions simultaneously
<?php print date('m', strtotime('2013-10-31 -1 month')) . "\n" . date('m', strtotime('2013-10-31 first day of 1 month ago'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qA5Io
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '2013-10-31+-1+month'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        CONCAT                                           ~2      $1, '%0A'
          8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'm'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '2013-10-31+first+day+of+1+month+ago'
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15        CONCAT                                           ~5      ~2, $4
         16        ECHO                                                     ~5
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.66 ms | 1394 KiB | 17 Q