3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1394 KiB | 21 Q