3v4l.org

run code in 500+ PHP versions simultaneously
<?php $di = new \DateInterval('P0Y'); $field = 'd'; $i = 1; $di->$field += $i; var_dump($di);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/plDlt
function name:  (null)
number of ops:  12
compiled vars:  !0 = $di, !1 = $field, !2 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   NEW                                                  $3      'DateInterval'
          1        SEND_VAL_EX                                                  'P0Y'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $3
    3     4        ASSIGN                                                       !1, 'd'
    4     5        ASSIGN                                                       !2, 1
    5     6        ASSIGN_OBJ_OP                                     1          !0, !1
          7        OP_DATA                                                      !2
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.11 ms | 1467 KiB | 14 Q