Tag

php7

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Feb 12, 2025 · Backend Development

Handling Division by Zero Errors in PHP: Differences Between PHP 7 and PHP 8 and Best Practices

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.

ExceptionPHP8backend
0 likes · 6 min read
Handling Division by Zero Errors in PHP: Differences Between PHP 7 and PHP 8 and Best Practices
php中文网 Courses
php中文网 Courses
Apr 18, 2024 · Backend Development

Top PHP 7 Interview Questions and Answers for 2024

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.

InterviewPHPbackend
0 likes · 7 min read
Top PHP 7 Interview Questions and Answers for 2024
php中文网 Courses
php中文网 Courses
Oct 18, 2023 · Backend Development

Using PHP7 Type Declarations to Improve Code Readability

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 readabilitybackendnullable types
0 likes · 5 min read
Using PHP7 Type Declarations to Improve Code Readability
php中文网 Courses
php中文网 Courses
Aug 7, 2022 · Backend Development

Key Features and Architecture of PHP 7 and PHP 8

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.

Backend DevelopmentGarbage CollectionPHP8
0 likes · 6 min read
Key Features and Architecture of PHP 7 and PHP 8
php中文网 Courses
php中文网 Courses
May 28, 2021 · Backend Development

Resolving the PHP Type‑Hint Error: Argument 1 Must Be an Instance of int

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.

backenddebuggingphp7
0 likes · 2 min read
Resolving the PHP Type‑Hint Error: Argument 1 Must Be an Instance of int
php中文网 Courses
php中文网 Courses
Feb 8, 2021 · Backend Development

How to Obtain Millisecond‑Precision Timestamps in PHP: 13‑Digit, Float, and Custom 14‑Digit Formats

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.

PHPbackendmillisecond
0 likes · 3 min read
How to Obtain Millisecond‑Precision Timestamps in PHP: 13‑Digit, Float, and Custom 14‑Digit Formats
Python Programming Learning Circle
Python Programming Learning Circle
Aug 25, 2018 · Backend Development

Explore PHP7’s Powerful New Features: Types, Null Coalesce, Anonymous Classes & More

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.

PHPanonymous-classbackend
0 likes · 4 min read
Explore PHP7’s Powerful New Features: Types, Null Coalesce, Anonymous Classes & More
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 20, 2017 · Backend Development

How We Upgraded to PHP 7: Challenges, Benchmarks, and Ops Insights

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.

BenchmarkOperationsPerformance
0 likes · 9 min read
How We Upgraded to PHP 7: Challenges, Benchmarks, and Ops Insights
Tencent Cloud Developer
Tencent Cloud Developer
Feb 15, 2017 · Backend Development

PHP7 Upgrade Practice for QQ Member Activity Platform (AMS)

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.

ApacheBackend DevelopmentHHVM
0 likes · 23 min read
PHP7 Upgrade Practice for QQ Member Activity Platform (AMS)
Architecture Digest
Architecture Digest
Jun 3, 2016 · Backend Development

Upgrading QQ Membership Activity Management System (AMS) from PHP 5.2/Apache 2.0 to PHP 7 and Apache 2.4: Process, Risks, and Performance Gains

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.

ApachePHPPerformance
0 likes · 21 min read
Upgrading QQ Membership Activity Management System (AMS) from PHP 5.2/Apache 2.0 to PHP 7 and Apache 2.4: Process, Risks, and Performance Gains