3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = '2014-02-10'; $from = new DateTime($from); $until = clone $from; $until->add(new DateInterval('P1D')); var_dump($from, $until);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/saNgB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $from, !1 = $until
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-02-10'
    4     1        NEW                                              $3      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
    6     5        CLONE                                            ~6      !0
          6        ASSIGN                                                   !1, ~6
    7     7        INIT_METHOD_CALL                                         !1, 'add'
          8        NEW                                              $8      'DateInterval'
          9        SEND_VAL_EX                                              'P1D'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $8
         12        DO_FCALL                                      0          
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.3 ms | 1394 KiB | 15 Q