# Phasis > Phasis is a JavaScript engine in pure PHP: it runs ES2024+ in the PHP process without Node or FFI and passes all 53,616 test262 tests (2026-10 snapshot). ## Pages - [Home](https://phasis.inline0.dev/) ## Documentation - [Introduction](https://phasis.inline0.dev/docs.md): Phasis runs JavaScript, TypeScript, JSX and React server rendering inside PHP, without Node.js. Overview, example and docs map. - [Getting Started](https://phasis.inline0.dev/docs/getting-started.md): Install Phasis and run your first JavaScript from PHP. - [Overview](https://phasis.inline0.dev/docs/interop.md): How PHP and JavaScript values cross the Phasis boundary: conversion rules, PHP callables as JS functions, and shared PHP objects. - [Value conversion](https://phasis.inline0.dev/docs/interop/values.md): How PHP types map to JavaScript types and back when crossing the engine boundary. - [Host functions](https://phasis.inline0.dev/docs/interop/host-functions.md): Expose PHP callables to JavaScript and call them directly without serialization overhead. - [Shared objects](https://phasis.inline0.dev/docs/interop/shared-objects.md): Share PHP objects with JavaScript by reference through public properties and methods. - [Fetch transport](https://phasis.inline0.dev/docs/interop/fetch-transport.md): Send Phasis fetch() through ext-curl, Guzzle, Symfony HttpClient or a mock, and allow or block each request with a policy hook. - [Cookie jar](https://phasis.inline0.dev/docs/interop/cookie-jar.md): Phasis fetch() keeps no cookies by default. Mount a PHP or JavaScript jar with get(url) and set(url, header) to persist them. - [AbortController patterns](https://phasis.inline0.dev/docs/interop/abort-patterns.md): Cancel work in Phasis with AbortSignal: timeouts, races, propagation, and polling the signal in a custom PHP fetch transport. - [TypeScript](https://phasis.inline0.dev/docs/typescript.md): Run .ts and .tsx files in PHP with automatic type erasure and the existing JSX renderer. - [JSX](https://phasis.inline0.dev/docs/jsx.md): Render JSX components to HTML from PHP: .jsx modules, Engine::render, the React and HTML profiles, and precompile. - [React](https://phasis.inline0.dev/docs/react.md): The native React 19.3 server renderer in PHP: byte-identical to react-dom, hydratable, with hooks, Suspense and useId. - [Modules](https://phasis.inline0.dev/docs/modules.md): How Phasis resolves imports with no build step: import maps, node_modules, package exports, CommonJS, aliases and assets. - [Overview](https://phasis.inline0.dev/docs/compatibility.md): How Phasis compares to V8, SpiderMonkey and JavaScriptCore: test262, Web Platform Tests, popular packages and known limits. - [test262 coverage](https://phasis.inline0.dev/docs/compatibility/test262.md): How Phasis measures ECMAScript conformance against the pinned official test262 suite, with CI results and failure details. - [Web APIs (WHATWG / W3C)](https://phasis.inline0.dev/docs/compatibility/web-apis.md): The Web Platform APIs Phasis ships beyond ECMAScript: URL, encoding, structuredClone, fetch, Streams, Blob, FormData and more. - [Streams](https://phasis.inline0.dev/docs/compatibility/streams.md): Phasis implements WHATWG Streams: readable, writable and transform streams, BYOB readers, tee, piping and async iteration. - [Popular packages](https://phasis.inline0.dev/docs/compatibility/popular-packages.md): Phasis runs 205 popular npm packages, including lodash, zod, prettier and typescript, with output compared to Node.js in CI. - [Spec surface](https://phasis.inline0.dev/docs/compatibility/spec-surface.md): Every ECMAScript built-in, syntactic feature, and standard-library object that Phasis ships. - [Known limitations](https://phasis.inline0.dev/docs/compatibility/limitations.md): Where Phasis intentionally diverges from V8 — performance ceilings, host integrations, and design trade-offs. - [Overview](https://phasis.inline0.dev/docs/advanced.md): How Phasis works inside: architecture, the bytecode VM, performance, the oracle testing model and where to extend the engine. - [Architecture](https://phasis.inline0.dev/docs/advanced/architecture.md): A tour of the lexer, parser, AST, runtime and built-in library, the layers that turn JavaScript source into execution in PHP. - [Bytecode VM](https://phasis.inline0.dev/docs/advanced/bytecode-vm.md): How Phasis compiles hot JS functions to PHP closures at runtime — and the bail-out semantics that keep the spec correct. - [Oracle testing](https://phasis.inline0.dev/docs/advanced/testing.md): How Phasis stays spec-correct — Node.js as the oracle, test262 as the conformance suite. - [Benchmarks](https://phasis.inline0.dev/docs/advanced/benchmarks.md): How Phasis performs vs V8, what kind of workloads it handles well, and how to measure your own. - [CLI](https://phasis.inline0.dev/docs/cli.md): Complete command reference for the bin/phasis, bin/test262, and bin/wpt executables. - [API](https://phasis.inline0.dev/docs/api.md): Reference for PhasisEngine, the PHP entry point: eval, modules, files, rendering, globals, console output, limits and lifecycle. - [Parser](https://phasis.inline0.dev/docs/parser.md): Parse JavaScript into a typed PHP AST with PhasisParserParser, walk it, and export it as ESTree-shaped arrays or JSON. - [Formatter](https://phasis.inline0.dev/docs/formatter.md): Format JavaScript, JSON and CSS in PHP with PhasisFormatterFormatter, a prettier-compatible printer that needs no Node.js. ## Optional - [Full documentation](https://phasis.inline0.dev/llms-full.txt): Markdown source of every documentation page in one file, 229 KB, about 59,000 tokens