3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date( 'Y-m-d', strtotime( '-1 year 01.01.' . date( 'Y' ) ) ) . "\n"; echo date( 'Y-m-d' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WpuSq
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                                                 '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        CONCAT                                           ~4      $3, '%0A'
         12        ECHO                                                     ~4
    3    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.86 ms | 939 KiB | 18 Q