UNIVERSITY OF RUSE "ANGEL KANCHEV"
UNION OF SCIENTISTS - RUSE

Proceedings 2025
Faculty of Electrical and Electronic Engineering and AutomationBook 3.2 · Communication and Computer Technologies

FRI-2G.303-1-CCT1-11

PERFORMANCE EVALUATION OF SUBROUTINES CALL IN PHP

Language: ENPages: 67-74

Cite this paper

Yordan Kalmukov, PhD

Department of Computer Systems and Technologies University of Ruse

ORCID: 0000-0002-6402-9510

E-mail: jkalmukov@uni-ruse.bg

Abstract

One of the most popular and basic principles in programming is the DRY principle (don’t repeat yourself). According to it, code duplication should be avoided within a single application. Instead of duplicating it, the code can be exported to/as a subroutine, which can be called as many times as needed and where needed. The same principle is fully adopted and integrated in the object-oriented design as well. It makes the code better structured and more flexible, and significantly facilitates future updates and development of the application. However, there is one problem - cascaded methods calls. Each subroutine call has a price - the code execution time increases and the application performance decreases. The aim of this paper is to conduct a series of experimental analyses to determine how much the performance of a PHP application decreases when the code is exported to subroutines and their subsequent call.

Keywords

Performance evaluation, subroutine call overhead, php, big data processing

REFERENCES

  • Allen Institute for Artificial Intelligence. (2025). Semantic Scholar API - Providing a reliable source of scholarly data for developers, https://www.semanticscholar.org/product/api (Accessed November 2025)
  • Johnson, J., Howie, Esailija, and other users. (2013). How Significant Is PHP Function Call Overhead?, StackOverflow, https://stackoverflow.com/questions/17971933/how-significant-is-php-function-call-overhead (Accessed November 2025)
  • Kalmukov, Y. (2025). Performance Evaluation of Alternative Programming Techniques in PHP. IN: 6th International Conference on Communications, Information, Electronic and Energy Systems (CIEES), Ruse, IEEE, 2025, pp. 1-5, ISBN 979-8-3315-0119-8
  • Kalmukov, Y. (2022). Comparison of Latent Semantic Analysis and Vector Space Model for Automatic Identification of Competent Reviewers to Evaluate Papers, International Journal of Advanced Computer Science and Applications, vol. 13, no. 2, (2022), pp. 77-85, ISSN 2156-5570, DOI: http://dx.doi.org/10.14569/IJACSA.2022.0130209
  • Kalmukov, Y. (2020). Automatic Assignment of Reviewers to Papers Based on Vector Space Text Analysis Model, Proceedings of the 21st International Conference on Computer Systems and Technologies, CompSysTech 2020, Association for Computing Machinery, New York, NY, USA, 2020, pp. 229-235, DOI: https://doi.org/10.1145/3407982.3408026
  • Planer, T., Smorra Ch. (2010). Functions vs repeated code, StackOverflow, https://stackoverflow.com/questions/3388166/functions-vs-repeated-code (Accessed November 2025)