3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.06 ms | 1011 KiB | 16 Q