3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = new DateInterval('PT1S'); $i->d = 9985856; $i->h = -856647; $i = unserialize(serialize($i)); var_dump($i->d, $i->h);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HTfLd
function name:  (null)
number of ops:  22
compiled vars:  !0 = $i
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, 'd'
          5        OP_DATA                                                  9985856
    6     6        ASSIGN_OBJ                                               !0, 'h'
          7        OP_DATA                                                  -856647
    8     8        INIT_FCALL                                               'unserialize'
          9        INIT_FCALL                                               'serialize'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !0, $7
   10    15        INIT_FCALL                                               'var_dump'
         16        FETCH_OBJ_R                                      ~9      !0, 'd'
         17        SEND_VAL                                                 ~9
         18        FETCH_OBJ_R                                      ~10     !0, 'h'
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.79 ms | 999 KiB | 16 Q