Jotform Tech

Welcome to Jotform official tech blog. Read about software engineering and how Jotform engineers…

Follow publication

Member-only story

JIT in PHP

Atakan Demircioğlu
Jotform Tech
Published in
3 min readNov 12, 2023

--

This is the last article in a series I’ve written about understanding how PHP works. In this article, we will cover JIT in PHP.

For some background, I recommend my previous posts on this topic:

I’ve covered JIT before, so for this article, I’ll just share my slide notes.

Function JIT problems

  • Generally only improves the performance of CPU-bound apps
  • JIT works better with strict types (use strict_types = 1)
  • Function-based JIT can’t refer to objects
  • JIT is useful with real hot-spots
  • Doesn’t check whether the code is frequently used or not
  • Need a smarter way (Tracing JIT)

JIT-friendly code

  • Strictly typed code and functions with scalar types can help JIT to infer types and make use of CPU registers.
  • Use declare(strict_types=1);

How Do I Get Started

--

--

Published in Jotform Tech

Welcome to Jotform official tech blog. Read about software engineering and how Jotform engineers build the easiest form builder.

Written by Atakan Demircioğlu

Passionate about blogging and sharing insights on tech, web development, and beyond. Join me on this digital journey! 🚀

Responses (4)

What are your thoughts?