3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public $bar = 'property'; public function bar() { return 'method'; } } class Foo2 { public $bar = 'property'; public function bar() { return 'method'; } } $obj = new Foo(); $obj2 = new Foo2(); var_dump($obj->bar === $obj2->bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mtVkU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj, !1 = $obj2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   NEW                                                  $2      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
   19     3        NEW                                                  $5      'Foo2'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !1, $5
   20     6        INIT_FCALL                                                   'var_dump'
          7        FETCH_OBJ_R                                          ~8      !0, 'bar'
          8        FETCH_OBJ_R                                          ~9      !1, 'bar'
          9        IS_IDENTICAL                                         ~10     ~8, ~9
         10        SEND_VAL                                                     ~10
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

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

End of function bar

End of class Foo.

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

End of function bar

End of class Foo2.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.59 ms | 2084 KiB | 14 Q