3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = new DateInterval('PT1S'); $interval->f = -0.000001; var_dump($interval->s, $interval->f); echo "\n"; $interval = unserialize(serialize($interval)); var_dump($interval->s, $interval->f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t5N4d
function name:  (null)
number of ops:  27
compiled vars:  !0 = $interval
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
    4     4        ASSIGN_OBJ                                               !0, 'f'
          5        OP_DATA                                                  -1.0e-6
    6     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~5      !0, 's'
          8        SEND_VAL                                                 ~5
          9        FETCH_OBJ_R                                      ~6      !0, 'f'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    8    12        ECHO                                                     '%0A'
    9    13        INIT_FCALL                                               'unserialize'
         14        INIT_FCALL                                               'serialize'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !0, $9
   11    20        INIT_FCALL                                               'var_dump'
         21        FETCH_OBJ_R                                      ~11     !0, 's'
         22        SEND_VAL                                                 ~11
         23        FETCH_OBJ_R                                      ~12     !0, 'f'
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
13.79 ms | 411 KiB | 7 Q