3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Doge { private $name = 'smelly doge'; public function __get($attribute) { return $this->{$attribute}; } } $doge = new Doge(); var_dump( $doge->name, empty($doge->name), isset($doge->name) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mXuaS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $doge
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Doge'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'var_dump'
   18     4        FETCH_OBJ_R                                      ~4      !0, 'name'
          5        SEND_VAL                                                 ~4
   19     6        ISSET_ISEMPTY_PROP_OBJ                           ~5      !0, 'name'
          7        SEND_VAL                                                 ~5
   20     8        ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, 'name'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
   21    11      > RETURN                                                   1

Class Doge:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mXuaS
function name:  __get
number of ops:  4
compiled vars:  !0 = $attribute
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        FETCH_OBJ_R                                      ~1      !0
          2      > RETURN                                                   ~1
   10     3*     > RETURN                                                   null

End of function __get

End of class Doge.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.36 ms | 1386 KiB | 15 Q