An empirical study of PHP feature usage: a static analysis perspective

M. Hills, P. Klint, J.J. Vinju

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

27 Citations (Scopus)
1 Downloads (Pure)

Abstract

PHP is one of the most popular languages for server-side application development. The language is highly dynamic, providing programmers with a large amount of flexibility. However, these dynamic features also have a cost, making it difficult to apply traditional static analysis techniques used in standard code analysis and transformation tools. As part of our work on creating analysis tools for PHP, we have conducted a study over a significant corpus of open-source PHP systems, looking at the sizes of actual PHP programs, which features of PHP are actually used, how often dynamic features appear, and how distributed these features are across the files that make up a PHP website. We have also looked at whether uses of these dynamic features are truly dynamic or are, in some cases, statically understandable, allowing us to identify specific patterns of use which can then be taken into account to build more precise tools. We believe this work will be of interest to creators of analysis tools for PHP, and that the methodology we present can be leveraged for other dynamic languages with similar features.
Original languageEnglish
Title of host publicationProceedings of the 2013 International Symposium on Software Testing and Analysis (ISSTA'13), July 15-20, 2013, Lugano, Switzerland
EditorsM. Pezzè, M. Harman
Place of PublicationNew York
PublisherAssociation for Computing Machinery, Inc
Pages325-335
ISBN (Print)978-1-4503-2159-4
DOIs
Publication statusPublished - 2013
Externally publishedYes
Eventconference; 2013 International Symposium on Software Testing and Analysi; 2013-07-15; 2013-07-20 -
Duration: 15 Jul 201320 Jul 2013

Conference

Conferenceconference; 2013 International Symposium on Software Testing and Analysi; 2013-07-15; 2013-07-20
Period15/07/1320/07/13
Other2013 International Symposium on Software Testing and Analysi

Fingerprint

Dive into the research topics of 'An empirical study of PHP feature usage: a static analysis perspective'. Together they form a unique fingerprint.

Cite this