What is PHP written in?
Its runtime is implemented in C (well-documented).
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Runtime Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| C | 95% | PHP Zend Engine written in C | Source |
Influenced By
- Perl — PHP originally scripting layer inspired by Perl
- C — PHP influenced by C's syntax
- Java — PHP's object model influenced by Java
Frequently Asked Questions
What language is PHP written in?
PHP is primarily implemented in C. See the implementation section above for details and source references.
What languages influenced PHP?
PHP was influenced by Perl, C, Java among others. See the influence section above for the full list.
Evidence Sources
- https://github.com/php/php-src
- https://www.php.net/manual/en/history.php
- https://en.wikipedia.org/wiki/PHP