3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { public function __construct(protected bool $woof){} public function __isset(string $name) { if ($name === 'woof') { return $this->woof; } return FALSE; } } $f = new Dog(TRUE); var_export(empty($f->woof)); echo PHP_EOL; var_export(isset($f->woof));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rIcOd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Dog'
          1        SEND_VAL_EX                                              <true>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   14     4        INIT_FCALL                                               'var_export'
          5        ISSET_ISEMPTY_PROP_OBJ                           ~4      !0, 'woof'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
   15     8        ECHO                                                     '%0A'
   16     9        INIT_FCALL                                               'var_export'
         10        ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, 'woof'
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Dog:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rIcOd
function name:  __construct
number of ops:  4
compiled vars:  !0 = $woof
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        ASSIGN_OBJ                                               'woof'
          2        OP_DATA                                                  !0
          3      > RETURN                                                   null

End of function __construct

Function __isset:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rIcOd
function name:  __isset
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        IS_IDENTICAL                                             !0, 'woof'
          2      > JMPZ                                                     ~1, ->5
    7     3    >   FETCH_OBJ_R                                      ~2      'woof'
          4      > RETURN                                                   ~2
    9     5    > > RETURN                                                   <false>
   10     6*     > RETURN                                                   null

End of function __isset

End of class Dog.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.97 ms | 1452 KiB | 14 Q