3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.56 ms | 1395 KiB | 19 Q