Tagged articles
php7
17 articles · Page 1 of 1
This article explains how PHP 7 and PHP 8 handle division‑by‑zero errors, outlines common causes of zero‑division, and presents six practical techniques—including input validation, conditional checks, ternary operators, custom error handlers, try‑catch blocks, and avoiding the @ operator—supported by clear code examples and a real‑world financial‑app case study.
BackendExceptiondivision-by-zero
0 likes · 6 min read

This article presents eight essential PHP 7 interview questions covering core feature innovations, performance improvements, scalar type declarations, null coalescing, the Throwable interface, the spaceship operator, anonymous classes, and enhanced error handling, with concise English explanations to help developers prepare for 2024 interviews.
BackendInterviewPHP
0 likes · 7 min read

This article explains PHP7's strong typing features—including parameter, return, and nullable type declarations—through clear code examples, demonstrating how they enhance readability, reduce errors, and improve maintainability for developers working on server-side applications.
Code ReadabilityType Declarationsnullable types
0 likes · 5 min read

This article outlines the major new features of PHP 8 and PHP 7, explains why PHP 7 outperforms PHP 5, describes the execution flow, web‑request lifecycle, underlying architecture, data structures, garbage‑collection mechanism, and the PHP‑FPM master‑worker model with optimization tips.
LifecyclePHPbackend development
0 likes · 6 min read

This article explains a confusing PHP error where a method expects an instance of int but receives an integer, analyzes three common causes—including an incorrect use statement, outdated PHP version, and unnecessary type hint—and provides concise solutions for each.
BackendPHPphp7
0 likes · 2 min read

This article demonstrates three PHP techniques for obtaining millisecond‑precision timestamps—13‑digit integer, floating‑point value, and a custom 14‑digit format—providing full code examples and usage illustrations. It also shows how to integrate the timestamp into request data structures for payment APIs.
millisecondphp7timestamp
0 likes · 3 min read


21CTOAug 2, 2019 · Backend Development
This article examines recent rumors about PHP’s demise, reviews Zend’s leadership changes, presents market‑share data, and argues why PHP remains a viable choice for startups and small‑to‑medium enterprises despite criticism.
PHPZendmarket share
0 likes · 8 min read

This article reviews the major PHP7 enhancements—including scalar type declarations, the null‑coalescing operator, anonymous classes, improved error handling, the spaceship operator, and array constants—providing clear explanations and code examples for each feature.
Anonymous ClassBackenderror-handling
0 likes · 4 min read


21CTOFeb 28, 2018 · Backend Development
This article examines PHP's enduring market share, highlights its practical design and powerful standard library, and outlines six key recommendations—including Composer, PHP 7, PSR standards, Swoole, Laravel, and Phar packaging—to help developers stay competitive in the evolving backend landscape.
BackendComposerLaravel
0 likes · 6 min read

This article details Baixing.com's migration to PHP 7, covering the performance gains, deployment steps, code incompatibilities, extension upgrades, and practical tips that together reduced server load and page response times by 30‑50%.
Extension Upgradebackend developmentcode migration
0 likes · 10 min read

This article recounts the Huajiao team's migration from PHP 5 to PHP 7, detailing the motivations, upgrade hurdles, extensive performance benchmarks, gray‑release strategy, and operational steps that together delivered up to 30% CPU savings and significant cost reductions.
BackendOperationsbenchmark
0 likes · 9 min read


21CTOFeb 27, 2017 · Backend Development
PHP7 brings a host of performance improvements and new language features—including refined namespace usage, interfaces, traits, generators, closures, Zend OPcache, and a built‑in HTTP server—each illustrated with practical code examples and best‑practice recommendations for modern backend development.
OPcacheTraitsbackend development
0 likes · 8 min read

The QQ Member Activity Platform upgraded its legacy PHP 5.2/Apache 2.0 stack to PHP 7.0 with Apache 2.4 through staged migrations, extensive extension refactoring, and rigorous debugging, ultimately achieving roughly double the request‑handling performance and significant hardware cost savings while maintaining service stability.
ApacheJITPHP Upgrade
0 likes · 23 min read

This article details the end‑to‑end migration of the QQ Membership Activity Management System from an outdated PHP 5.2/Apache 2.0 stack to PHP 7 and Apache 2.4, covering pre‑research on HHVM and JIT, architectural choices, upgrade risks, step‑by‑step implementation, debugging techniques, API changes, and the resulting performance improvements.
ApacheWebperformance
0 likes · 21 min read


21CTOMar 16, 2016 · Backend Development
Badoo migrated its massive PHP codebase to PHP 7 across hundreds of servers, overcoming engine bugs, HHVM limitations, and extension incompatibilities, while revamping testing infrastructure and deployment processes, ultimately achieving up to 40% faster response times, eight‑fold memory reduction, and roughly one million dollars in cost savings.
Backendmigrationops
0 likes · 22 min read


21CTOJan 2, 2016 · Backend Development
This guide outlines five practical steps—enabling Zend Opcache, compiling with GCC 4.8+, activating HugePages, configuring Opcache file cache, and applying PGO—to extract the maximum speed from PHP 7 installations, especially for high‑traffic sites like WordPress.
HugePagesOPcachePGO
0 likes · 5 min read


21CTOSep 20, 2015 · Backend Development
This article reviews PHP7’s major language enhancements, architectural changes, and benchmark results that demonstrate up to a 60% speed increase and a 2.7‑fold QPS boost for WordPress, providing developers with practical insights into adopting the new version.
New Featuresbackend-developmentperformance
0 likes · 16 min read
