3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { function aMethod() { //echo "Helloddfdfd"; return $this; } function bMethod() { //echo "Hissss"; return $this; } function cMethod() { //echo "hi sudhir"; return $this; } } class YourClass extends MyClass { function yMethod() { echo "ssss"; } } //(new MyClass())->aMethod()->bMethod()->cMethod();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JiEcU
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                   1

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

End of function amethod

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

End of function bmethod

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

End of function cmethod

End of class MyClass.

Class YourClass:
Function ymethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JiEcU
function name:  yMethod
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ECHO                                                     'ssss'
   20     1      > RETURN                                                   null

End of function ymethod

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

End of function amethod

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

End of function bmethod

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

End of function cmethod

End of class YourClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.56 ms | 1403 KiB | 13 Q