3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.89 ms | 1398 KiB | 15 Q