3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { private const BAR = 1; private $bar = 1; private function bar() { } } $foo = new Foo; var_dump(property_exists($foo, 'bar')); var_dump(method_exists($foo, 'bar')); defined('Foo::BAR');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7PYOQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   15     3        INIT_FCALL                                                   'var_dump'
          4        FRAMELESS_ICALL_2                property_exists      ~4      !0, 'bar'
          5        SEND_VAL                                                     ~4
          6        DO_ICALL                                                     
   16     7        INIT_FCALL                                                   'var_dump'
          8        INIT_FCALL                                                   'method_exists'
          9        SEND_VAR                                                     !0
         10        SEND_VAL                                                     'bar'
         11        DO_ICALL                                             $6      
         12        SEND_VAR                                                     $6
         13        DO_ICALL                                                     
   20    14        INIT_FCALL                                                   'defined'
         15        SEND_VAL                                                     'Foo%3A%3ABAR'
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7PYOQ
function name:  bar
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                       null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.84 ms | 479 KiB | 10 Q