3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.26 ms | 1394 KiB | 21 Q