3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yyyymmdd = date('Ymd', strtotime(time()-"6 months")); echo $yyyymmdd;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C5qfE
function name:  (null)
number of ops:  13
compiled vars:  !0 = $yyyymmdd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Ymd'
          2        INIT_FCALL                                               'strtotime'
          3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $1      
          5        SUB                                              ~2      $1, '6+months'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    5    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.31 ms | 1394 KiB | 19 Q