3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $prop; } $foo = new Foo(); $foo->prop = '123'; var_dump(property_exists($foo, 'prop')); var_dump(isset($foo->prop));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kFUHa
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    7     3        ASSIGN_OBJ                                               !0, 'prop'
          4        OP_DATA                                                  '123'
    8     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'property_exists'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'prop'
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        ISSET_ISEMPTY_PROP_OBJ                           ~7      !0, 'prop'
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.39 ms | 1398 KiB | 17 Q