3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function one(); public function two(); } abstract class FooBase implements FooInterface { public function one() { return 1; } } class Foo extends FooBase { public function two() { return 2; } } $foo = new Foo(); var_dump($foo->one()); var_dump($foo->two());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NJmjJ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'foobase'
   12     1        DECLARE_CLASS                                            'foo', 'foobase'
   17     2        NEW                                              $1      'Foo'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   18     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'one'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
   19    10        INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !0, 'two'
         12        DO_FCALL                                      0  $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

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

End of function one

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

End of function two

End of class FooInterface.

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

End of function one

End of class FooBase.

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

End of function two

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.61 ms | 1401 KiB | 15 Q