3v4l.org

run code in 500+ PHP versions simultaneously
<?php $interval = \DateInterval::createFromDateString('+1 month'); var_dump($interval->days === false); var_dump(unserialize(serialize($interval))->days === false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RkMGa
function name:  (null)
number of ops:  21
compiled vars:  !0 = $interval
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                      'DateInterval', 'createFromDateString'
          1        SEND_VAL                                                     '%2B1+month'
          2        DO_FCALL                                          0  $1      
          3        ASSIGN                                                       !0, $1
    4     4        INIT_FCALL                                                   'var_dump'
          5        FETCH_OBJ_R                                          ~3      !0, 'days'
          6        TYPE_CHECK                                        4  ~4      ~3
          7        SEND_VAL                                                     ~4
          8        DO_ICALL                                                     
    5     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'unserialize'
         11        INIT_FCALL                                                   'serialize'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                             $6      
         14        SEND_VAR                                                     $6
         15        DO_ICALL                                             $7      
         16        FETCH_OBJ_R                                          ~8      $7, 'days'
         17        TYPE_CHECK                                        4  ~9      ~8
         18        SEND_VAL                                                     ~9
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.34 ms | 3260 KiB | 16 Q