3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.71 ms | 1394 KiB | 17 Q