3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.47 ms | 1394 KiB | 17 Q