3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { function baz($moo); } abstract class Bar implements Foo {} //class_alias('Bar', 'Bar53'); eval('abstract class Bar52 extends Bar {}'); //class Test53 extends Bar53 { function baz($moo) {} } class Test52 extends Bar52 { function baz($moo) {} } var_dump(new Test52() instanceof Foo); //var_dump(new Test53() instanceof Foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DOfKt
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'bar'
    8     1        INCLUDE_OR_EVAL                                          'abstract+class+Bar52+extends+Bar+%7B%7D', EVAL
   11     2        DECLARE_CLASS                                            'test52', 'bar52'
   13     3        INIT_FCALL                                               'var_dump'
          4        NEW                                              $1      'Test52'
          5        DO_FCALL                                      0          
          6        INSTANCEOF                                       ~3      $1, 'Foo'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
   14     9      > RETURN                                                   1

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

End of function baz

End of class Foo.

Class Bar: [no user functions]
Class Test52:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DOfKt
function name:  baz
number of ops:  2
compiled vars:  !0 = $moo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function baz

End of class Test52.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.28 ms | 1399 KiB | 15 Q