3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class testclass { var $dd = ""; } $test = new testclass(); if (isset($test->dd[0])){ echo "(A) TRUE \n"; }else{ echo "(A) FALSE \n"; } if (is_array($test->dd) && isset($test->dd[0])){ echo "(B) TRUE \n"; }else{ echo "(B) FALSE \n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
Branch analysis from position: 18
filename:       /in/WKoHD
function name:  (null)
number of ops:  23
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        NEW                                              $2      'testclass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    5     6        FETCH_OBJ_IS                                     ~5      !0, 'dd'
          7        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 0
          8      > JMPZ                                                     ~6, ->11
    6     9    >   ECHO                                                     '%28A%29+TRUE+%0A'
         10      > JMP                                                      ->12
    8    11    >   ECHO                                                     '%28A%29+FALSE+%0A'
   10    12    >   FETCH_OBJ_R                                      ~7      !0, 'dd'
         13        TYPE_CHECK                                  128  ~8      ~7
         14      > JMPZ_EX                                          ~8      ~8, ->18
         15    >   FETCH_OBJ_IS                                     ~9      !0, 'dd'
         16        ISSET_ISEMPTY_DIM_OBJ                         0  ~10     ~9, 0
         17        BOOL                                             ~8      ~10
         18    > > JMPZ                                                     ~8, ->21
   11    19    >   ECHO                                                     '%28B%29+TRUE+%0A'
         20      > JMP                                                      ->22
   13    21    >   ECHO                                                     '%28B%29+FALSE+%0A'
   14    22    > > RETURN                                                   1

Class testclass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.58 ms | 1396 KiB | 15 Q