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 { function yMethod() { } } (new MyClass())->aMethod()->bMethod()->cMethod()->yMethod();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5H3nA
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $0      'MyClass'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'aMethod'
          3        DO_FCALL                                      0  $2      
          4        INIT_METHOD_CALL                                         $2, 'bMethod'
          5        DO_FCALL                                      0  $3      
          6        INIT_METHOD_CALL                                         $3, 'cMethod'
          7        DO_FCALL                                      0  $4      
          8        INIT_METHOD_CALL                                         $4, 'yMethod'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class MyClass:
Function amethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5H3nA
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/5H3nA
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/5H3nA
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/5H3nA
function name:  yMethod
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E > > RETURN                                                   null

End of function ymethod

End of class YourClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.67 ms | 1395 KiB | 13 Q