3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.53 ms | 1394 KiB | 17 Q