3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function __isset($varname) { echo 'isset' . PHP_EOL; return false; } public function __get($varname) { trigger_error('Key "' . $varname . '" does not exist', E_USER_NOTICE); } } $obj = new MyClass(); var_dump( isset($obj->test[0]) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ZaaO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_IS                                     ~4      !0, 'test'
          5        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      ~4, 0
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class MyClass:
Function __isset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ZaaO
function name:  __isset
number of ops:  4
compiled vars:  !0 = $varname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ECHO                                                     'isset%0A'
    9     2      > RETURN                                                   <false>
   10     3*     > RETURN                                                   null

End of function __isset

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ZaaO
function name:  __get
number of ops:  8
compiled vars:  !0 = $varname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        INIT_FCALL                                               'trigger_error'
          2        CONCAT                                           ~1      'Key+%22', !0
          3        CONCAT                                           ~2      ~1, '%22+does+not+exist'
          4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 1024
          6        DO_ICALL                                                 
   15     7      > RETURN                                                   null

End of function __get

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 1395 KiB | 17 Q