3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.47 ms | 1394 KiB | 19 Q