WP Content

  • Business
  • Community
  • Development
  • Plugins
  • Security
  • Tutorials
  • Login
Trending now

WordPress plugin business financials: what to give a buyer

How long does it take to sell a WordPress plugin?

How to buy a WordPress plugin business: what to check

WordPress Publishing Without WordPress? Meet Quill

WordPress Credits Welcomes More Than 50 Institutions

Developers Push Back on WordPress 7.2’s New /random/ Endpoint Being On by Default

Conservative in What We Accept

Do scroll animations hurt SEO? A practical Core Web Vitals checklist for image-sequence pages

WordPress 7.1.4, Gutenberg 24.3, a new Studio workspace, WordPress for the Agentic Web, and more—Weekend ...

We went looking: what Woo has done about security since June

Transpiling PHP code from 8.0 to 7.x via Rector blog.logrocket.com

2
Leonardo Losoviz 6 years ago in Development 0

There is no need to wait for WordPress to bump its minimum PHP version to start using features from PHP 7.4 and 8.0 for our themes and plugins.

There is a tool for PHP, called Rector, which enables to transpile PHP code, similar to how Babel compiles JS to make it compatible with older browsers.

So we can use modern features (such as union types, typed properties, and arrow functions), and deploy it to PHP 7.1.

This article introduces the topic of transpiling in PHP.

  • Facebook
  • Twitter
  • Pinterest
voters
  • Leonardo Losoviz
  • Jun-E Tan
Report Article

Related Articles

  1. Do scroll animations hurt SEO? A practical Core Web Vitals...
  2. SVG icons in the admin bar and menu in WordPress...

Recent

  • WordPress Publishing Without WordPress? Meet Quill

    WordPress Publishing Without WordPress? Meet Quill thewpminute.com

  • WordPress Credits Welcomes More Than 50 Institutions

    WordPress Credits Welcomes More Than 50 Institutions wordpress.org

  • Developers Push Back on WordPress 7.2’s New /random/ Endpoint Being On by Default

    Developers Push Back on WordPress 7.2’s New /random/ Endpoint Being... therepository.email

  • Conservative in What We Accept

    Conservative in What We Accept make.wordpress.org

  • Do scroll animations hurt SEO? A practical Core Web Vitals checklist for image-sequence pages

    Do scroll animations hurt SEO? A practical Core Web Vitals... beta.scrollsequence.com

Recent Comments

  • Kishor on Krom Automation Pro: Visual WordPress Workflow Automation Without Monthly Fees
  • Sanjay Joshi on How to Remove WordPress Sidebar On Any Website In a Minute – UnlimitedWP
  • ShadRabbir on How to Migrate Your WordPress Site to Another Host Without Losing Any Data
  • YayCommerce on How to Migrate Your WordPress Site to Another Host Without Losing Any Data
  • Golam Mostafa on How to Offload Your Media Files in WordPress

✉️ Get the most popular articles in your inbox every week!

WP Content

WordPress news and articles from the WordPress community.

Proudly powered by WordPress.
Hosted with SpinupWP.

Discover
  • Business
  • Community
  • Development
  • Editorials
  • Plugins
  • Security
  • Tutorials
WP Content
  • Submit Article
  • Recent Articles
  • Newsletter
  • RSS Feed
  • About
  • Contact
Projects
  • FlipWP
  • Intagrate
  • WP User Manager

© 2026 WP Content. All rights reserved.
  • Terms
  • Privacy
Login Register

Login

Login with Facebook Login with Twitter Lost Password

Register

Login with Facebook Login with Twitter Lost Password