3v4l.org

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

Class MyClass:
Function amethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/apqKR
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/apqKR
function name:  bMethod
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'Hissss'
    9     1      > RETURN                                                   null
   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/apqKR
function name:  cMethod
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'hi+sudhir'
   13     1      > RETURN                                                   null

End of function cmethod

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.94 ms | 1385 KiB | 13 Q