3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WP_REST_Global_Styles_Controller { public function update_item() { echo "\n" . __METHOD__ . "\n"; $this->prepare_item_for_database(); } protected function prepare_item_for_database() { echo "\n" . __METHOD__ . "\n"; $this->validate_custom_css(); } private function validate_custom_css() { echo __METHOD__ . "()\n"; } } class WP_REST_Global_Styles_Controller_X_X extends WP_REST_Global_Styles_Controller { public function update_item() { echo "\n" . __METHOD__ . "\n"; // some custom code. $this->prepare_item_for_database(); } /** * Want to invoke this method, not the parent's method. */ protected function validate_custom_css() { echo __METHOD__ . "()\n"; } } ( new WP_REST_Global_Styles_Controller_X_X() )->update_item();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtXpK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   NEW                                              $0      'WP_REST_Global_Styles_Controller_X_X'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'update_item'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class WP_REST_Global_Styles_Controller:
Function update_item:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtXpK
function name:  update_item
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '%0AWP_REST_Global_Styles_Controller%3A%3Aupdate_item%0A'
    6     1        INIT_METHOD_CALL                                         'prepare_item_for_database'
          2        DO_FCALL                                      0          
    7     3      > RETURN                                                   null

End of function update_item

Function prepare_item_for_database:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtXpK
function name:  prepare_item_for_database
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     '%0AWP_REST_Global_Styles_Controller%3A%3Aprepare_item_for_database%0A'
   10     1        INIT_METHOD_CALL                                         'validate_custom_css'
          2        DO_FCALL                                      0          
   11     3      > RETURN                                                   null

End of function prepare_item_for_database

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

End of function validate_custom_css

End of class WP_REST_Global_Styles_Controller.

Class WP_REST_Global_Styles_Controller_X_X:
Function update_item:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtXpK
function name:  update_item
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ECHO                                                     '%0AWP_REST_Global_Styles_Controller_X_X%3A%3Aupdate_item%0A'
   23     1        INIT_METHOD_CALL                                         'prepare_item_for_database'
          2        DO_FCALL                                      0          
   24     3      > RETURN                                                   null

End of function update_item

Function validate_custom_css:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtXpK
function name:  validate_custom_css
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   ECHO                                                     'WP_REST_Global_Styles_Controller_X_X%3A%3Avalidate_custom_css%28%29%0A'
   31     1      > RETURN                                                   null

End of function validate_custom_css

Function prepare_item_for_database:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtXpK
function name:  prepare_item_for_database
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     '%0AWP_REST_Global_Styles_Controller%3A%3Aprepare_item_for_database%0A'
   10     1        INIT_METHOD_CALL                                         'validate_custom_css'
          2        DO_FCALL                                      0          
   11     3      > RETURN                                                   null

End of function prepare_item_for_database

End of class WP_REST_Global_Styles_Controller_X_X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.53 ms | 1453 KiB | 13 Q