3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.22 ms | 1395 KiB | 23 Q