3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = new DateTime('2015-06-24 22:09:00'); var_dump(isset($subject->timezone)); $reflection = new ReflectionObject($subject); foreach ($reflection->getProperties() as $prop) { $prop->setAccessible(true); $prop->setAccessible(false); } var_dump(isset($subject->timezone));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/VHJMq
function name:  (null)
number of ops:  29
compiled vars:  !0 = $subject, !1 = $reflection, !2 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2015-06-24+22%3A09%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'var_dump'
          5        ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, 'timezone'
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                                 
    5     8        NEW                                              $8      'ReflectionObject'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $8
    6    12        INIT_METHOD_CALL                                         !1, 'getProperties'
         13        DO_FCALL                                      0  $11     
         14      > FE_RESET_R                                       $12     $11, ->23
         15    > > FE_FETCH_R                                               $12, !2, ->23
    7    16    >   INIT_METHOD_CALL                                         !2, 'setAccessible'
         17        SEND_VAL_EX                                              <true>
         18        DO_FCALL                                      0          
    8    19        INIT_METHOD_CALL                                         !2, 'setAccessible'
         20        SEND_VAL_EX                                              <false>
         21        DO_FCALL                                      0          
    6    22      > JMP                                                      ->15
         23    >   FE_FREE                                                  $12
   10    24        INIT_FCALL                                               'var_dump'
         25        ISSET_ISEMPTY_PROP_OBJ                           ~15     !0, 'timezone'
         26        SEND_VAL                                                 ~15
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.57 ms | 1396 KiB | 15 Q