3v4l.org

run code in 300+ PHP versions simultaneously
<? class Post { public function __construct() { echo $this->getKeywords(); echo "\r\n"; echo $this->getDescription(); echo "\r\n"; echo $this->getTitle(); echo "\r\n"; } public function getKeywords() { return 'POST:keywords'; } protected function getDescription() { return 'POST:description'; } private function getTitle() { return 'POST:title'; } } class News extends Post { public function __construct() { parent::__construct(); } public function getKeywords() { return 'News:keywords'; } protected function getDescription() { return 'News:description'; } private function getTitle() { return 'News:title'; } } //1 случай $Object = new News(); //2 случай echo $Object->getKeywords(); echo "\r\n"; echo $Object->getTitle(); echo "\r\n"; echo $Object->getDescription(); echo "\r\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rqeDA
function name:  (null)
number of ops:  16
compiled vars:  !0 = $Object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   50     0  E >   NEW                                              $1      'News'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   52     3        INIT_METHOD_CALL                                         !0, 'getKeywords'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6        ECHO                                                     '%0D%0A'
   53     7        INIT_METHOD_CALL                                         !0, 'getTitle'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
         10        ECHO                                                     '%0D%0A'
   54    11        INIT_METHOD_CALL                                         !0, 'getDescription'
         12        DO_FCALL                                      0  $6      
         13        ECHO                                                     $6
         14        ECHO                                                     '%0D%0A'
         15      > RETURN                                                   1

Class Post:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rqeDA
function name:  __construct
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_METHOD_CALL                                         'getKeywords'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3        ECHO                                                     '%0D%0A'
    7     4        INIT_METHOD_CALL                                         'getDescription'
          5        DO_FCALL                                      0  $1      
          6        ECHO                                                     $1
          7        ECHO                                                     '%0D%0A'
    8     8        INIT_METHOD_CALL                                         'getTitle'
          9        DO_FCALL                                      0  $2      
         10        ECHO                                                     $2
         11        ECHO                                                     '%0D%0A'
    9    12      > RETURN                                                   null

End of function __construct

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

End of function getkeywords

Function getdescription:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rqeDA
function name:  getDescription
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   'POST%3Adescription'
   19     1*     > RETURN                                                   null

End of function getdescription

Function gettitle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rqeDA
function name:  getTitle
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                   'POST%3Atitle'
   24     1*     > RETURN                                                   null

End of function gettitle

End of class Post.

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

End of function __construct

Function getkeywords:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rqeDA
function name:  getKeywords
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E > > RETURN                                                   'News%3Akeywords'
   37     1*     > RETURN                                                   null

End of function getkeywords

Function getdescription:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rqeDA
function name:  getDescription
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   41     0  E > > RETURN                                                   'News%3Adescription'
   42     1*     > RETURN                                                   null

End of function getdescription

Function gettitle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rqeDA
function name:  getTitle
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E > > RETURN                                                   'News%3Atitle'
   47     1*     > RETURN                                                   null

End of function gettitle

End of class News.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.38 ms | 1399 KiB | 13 Q