3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new datetime; print_r($a); print_r($a->date); $a->modify("+10 days"); print_r($a->date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kYUkf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'datetime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        FETCH_OBJ_R                                      ~5      !0, 'date'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    6    10        INIT_METHOD_CALL                                         !0, 'modify'
         11        SEND_VAL_EX                                              '%2B10+days'
         12        DO_FCALL                                      0          
    7    13        INIT_FCALL                                               'print_r'
         14        FETCH_OBJ_R                                      ~8      !0, 'date'
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.73 ms | 1394 KiB | 15 Q