3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __get($name) { echo "get\n"; return new self; } function __isset($name) { echo "isset\n"; return true; } } $o = new A; var_dump(isset($o->a->b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NqSvY
function name:  (null)
number of ops:  9
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_IS                                     ~4      !0, 'a'
          5        ISSET_ISEMPTY_PROP_OBJ                           ~5      ~4, 'b'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class A:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NqSvY
function name:  __get
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'get%0A'
    7     2        NEW                          self                $1      
          3        DO_FCALL                                      0          
          4      > RETURN                                                   $1
    8     5*     > RETURN                                                   null

End of function __get

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

End of function __isset

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
131.16 ms | 1400 KiB | 15 Q