3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.31 ms | 1386 KiB | 19 Q