3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function __isset($prop) { echo "__isset called on $prop\n"; return true; } } $c = new C; isset($c->foo); empty($c->foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t5b5s
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        ISSET_ISEMPTY_PROP_OBJ                           ~4      !0, 'foo'
          4        FREE                                                     ~4
   12     5        ISSET_ISEMPTY_PROP_OBJ                           ~5      !0, 'foo'
          6        FREE                                                     ~5
          7      > RETURN                                                   1

Class C:
Function __isset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t5b5s
function name:  __isset
number of ops:  7
compiled vars:  !0 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ROPE_INIT                                     3  ~2      '__isset+called+on+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%0A'
          4        ECHO                                                     ~1
    6     5      > RETURN                                                   <true>
    7     6*     > RETURN                                                   null

End of function __isset

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.15 ms | 1394 KiB | 13 Q