3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iv = new DateInterval("PT1S"); $iv->f = -1.000000; var_dump($iv->f); $iv->f = -2.000000; var_dump($iv->f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AmubA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $iv
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, 'f'
          5        OP_DATA                                                  -1
    6     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~5      !0, 'f'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    8    10        ASSIGN_OBJ                                               !0, 'f'
         11        OP_DATA                                                  -2
    9    12        INIT_FCALL                                               'var_dump'
         13        FETCH_OBJ_R                                      ~8      !0, 'f'
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.28 ms | 1004 KiB | 14 Q