We stand with Ukraine to help keep people safe. Join us
EN
When you purchase through links on our site, we may earn an affiliate commission

PHP for Mac

Server-side, cross-platform, HTML embedded scripting language.

Free
In English
5.0
Based on 7 user rates

PHP overview

This is a PHP module for the Apache Web server included in OS X. PHP is a server-side, cross-platform scripting language. PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

What's new in version 8.6.0

Core:
  • Fix potential ABI incompatibility when adding fields in patches by adding padding to globals.
  • Fix function and constant imports in compile_to_ast and add support for grouping.
  • Fixed bug GH-24668 (zend_set_local_var() leaks the previous value of an existing CV).
  • Fixed unmapping of an unrelated range when the aligned chunk mmap fails (Marti2203).
  • Fixed bug GH-25023 (ZEND_CONTAINER_OF() fails to compile with -std=c11).
  • Fixed AST printing dropping final on class constants and properties, and abstract on properties.
  • Fixed AST export of readonly anonymous classes dropping the readonly modifier.
  • Fixed memory leak of a duplicate named argument in new in initializer.
  • Fixed bug GH-25061 ($x = $x - 1 on null is optimized to PRE_DEC).
  • Fixed first-class callables to static methods in trait constant expressions resolving to the method of the first using class and bypassing visibility checks.
  • Fixed bug GH-24184 (System ID not being reinitialized after an Apache graceful restart, potentially causing incompatible OPcache file cache entries to be reused).
  • Fixed memory leak when an exception already contains the pending exception in its previous chain.
  • Fixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an enclosing function).
  • Fixed memory manager keeping a block reallocated to exactly the size of the next smaller bin in its larger bin, which efree_size() then freed into the wrong one.
  • Fix throwing behaviour with recursive arrays in VM.
  • Fixed skipped catch block when switching fibers during exception unwinding (Nicolas Grekas)
  • Fix escape analysis for objects implementing ArrayAccess.
  • Fixed GH-23921 (Fibers start with error_reporting = 0 when the error_reporting INI directive is not set).
  • Deprecated using "let" or "is" as the name of a class, function, or constant, and as an alias in class_alias() and use declarations.
  • Deprecated using "_" as a constant name and as an alias for a class or constant in use declarations.
  • Fixed incorrect internal pointer and foreach iterator positions when compacting arrays with holes.
  • Fix handling of references to typed properties during unserialization of various internal classes.
  • Fixed bug GH-23752 (Use scoped diagnostic suppression for the global register declarations so the caller's -Wvolatile-register-var state is restored).
  • Fixed OSS-Fuzz #538730793 (Assertion failure when returning by-ref from closure invoke).
  • Fixed OSS-Fuzz #540904105 (ASSERT: ast->attr == T_CLASS_C).
  • Calling is_a() or is_subclass_of() with a string as the first argument when $allow_string is false is now deprecated.
  • Enabled the TAILCALL VM (--disable-gcc-global-regs) when building with GCC >= 16.
  • Fixed GH-10497 (Allow direct mutation of objects stored in constants or class constants via OBJ->prop = $val).
  • Using the return statement in a finally block is now deprecated.
  • Deprecated "namespace" as a class constant name.
  • Changed run-tests.php to run in parallel by default, using up to 10 automatically detected workers. Pass -j1 for sequential execution.
  • Allowed readonly properties to declare default values.
  • Changed run-tests.php to run test subprocesses without a shell where possible.
  • Fixed GH-23121 (is_callable() wrongly accepts objects with no get_closure handler).
  • Passing a 3rd argument to define() is now deprecated.
  • Naming a function readonly is now deprecated.
  • Added stateless closure cache.
  • Implemented partial function application RFC.
  • Compile array_map() into a foreach() loop when using Partial Function Application as callback.
  • Fixed bug GH-22263 (reset typed property default on every unserialize failure path).
  • Fixed bug GH-18847 (SEGV in zend_fetch_debug_backtrace() when the memory limit is reached while the tracing JIT enters a call frame).
  • Sync Boost.Context assembly with 1.91.0.
  • Fixed bug GH-22387 (AST pretty-printing drops meaningful parentheses around RHS of instanceof).
  • Fixed bug GH-15672 and GH-15911 (Stack overflow when an internal function recurses through zend_call_function, such as a self-attached SPL iterator).
  • abort() instead of exit() on hard OOM.
  • perf: ZTS: move AG and SCNG into native __thread storage.
  • Added first-class callable cache to share instances for the duration of the request.
  • It is now possible to use reference assign on WeakMap without the key needing to be present beforehand.
  • Added `clamp()`.
  • Fix OSS-Fuzz #429429090 (Failed assertion on unset() with uninitialized container).
  • Fixed GH-20564 (Don't call autoloaders with pending exception).
  • Fixed bug GH-20174 (Assertion failure in ReflectionProperty::skipLazyInitialization after failed LazyProxy initialization).
  • Enabled the TAILCALL VM on Windows when compiling with Clang >= 19 x86_64.
  • Deprecate specifying a nullable return type for __debugInfo().
  • Fixed bug GH-22046 (The unserialize function can lead to segfault when non-Serializable internal classes are serialized back with the C format).
  • Fixed bug GH-22292 (AST pretty printing does not correctly handle invalid variable names).
  • Fixed bug GH-22291 (AST pretty printing does not correctly handle braces in string interpolation).
  • Fixed bug GH-22373 (AST pretty-printing drops meaningful parentheses surrounding property access).
  • Fixed GH-22422 (zend_arena layout mismatch leaked memory in separately built extensions under AddressSanitizer).
  • TSRM: use local-exec TLS in PIE executables.
  • perf: make all static extensions use TSRMG_STATIC.
  • Fixed bug GH-22257 (type confusion in Exception::getTraceAsString()).
  • TSRM: make CG, EG, SCNG and AG compile-time offsets.
  • Deprecate returning values from __construct() and __destruct().
  • base_convert, bindex, hexdec and octdec now raise a notice when they cannot precisely convert the given number.
  • Added error_include_args INI option to make the display of function arguments consistent in error output.
  • Fixed GHSA-8mjj-2r7p-4hg2 (Use-after-free in magic method backtraces can lead to remote code execution). (CVE-2026-129474)
  • Fixed GHSA-2fjv-p558-g82m (Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown). (CVE-2026-129182)
BCMath:
  • Added NUL-byte validation to BCMath functions.
Bz2:
  • Passing an object for the Bzip2 {de}compression stream filter is now deprecated. Use get_object_vars() on the object instead.
  • Reject oversized input in bzdecompress().
Calendar:
  • Fixed *tojd() functions and cal_to_jd() truncating arguments outside the int range instead of rejecting them.
CGI:
  • Fixed GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538)
CLI:
  • Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work).
  • Fixed bug GH-9670 (List -C and -q in the CLI help).
  • Fixed bug GH-23242 (PHP development server does not support Expect 100-continue flow control).
COM:
  • Fixed bug GH-25008 (com_event_sink() and com_print_typeinfo() crash resolving an event source with no loaded typelib).
Curl:
  • Fix use-after-free of CURLOPT_STDERR stream on cloned curl handle.
  • Fix UAF on clone due to callback data pointer mismatch.
  • Set content length using CURLOPT_POSTFIELDSIZE_LARGE instead of CURLOPT_POSTFIELDSIZE. This makes it possible to post strings larger than 2GB on some platforms, e.g. Windows.
  • Improved cURL option validation errors to include the option name.
  • Raise a value error when the callback registered with CURLOPT_READFUNCTION returns an unexpected long.
  • Fix bug GH-16513 (curl: exceptions in callbacks do not abort the request).
  • Added CURLOPT_SEEKFUNCTION and the CURL_SEEKFUNC_OK, CURL_SEEKFUNC_FAIL and CURL_SEEKFUNC_CANTSEEK constants, letting libcurl rewind a streamed request body to resend it on a redirect, multi-pass authentication or a retried reused connection.
  • Add support for CURLINFO_SIZE_DELIVERED (libcurl >= 8.20.0).

Full list of changes available here

View older PHP versions

PHP for Mac

Free
In English
Version 8.6.0
Write a detailed review about PHP

Write your thoughts in our old-fashioned comment

MacUpdate Comment Policy. We strongly recommend leaving comments, however comments with abusive words, bullying, personal attacks of any type will be moderated.
5.0

(23 Reviews of PHP)

  • Comments

  • User Ratings

Just-Fred
Just-Fred
Apr 19, 2023
8.2.5
0.0
Apr 19, 2023
0.0
Version: 8.2.5
Once again, the description given by MacUpdate is 100% wrong. This is a source code bundle and not a binary package. In order to use it, one must have Xcode installed and be able to compile it. Having found a need to use PHP to create a database-backed web site, I chose to use MacPorts (Homebrew is usually recommended, but I don't intend to install many "sidecar" Mac apps, and MacPorts seems less intrusive. On a plus note, PHP now includes its own built-in development web server, so configuring and running Apache (now called apache2 on Macs) isn't needed. A simple command: php -S <server>:<port> <optional: -t webhomedirectory> is all that's needed.
Parchment Press
Parchment Press
Dec 4, 2013
5.5.6
0.0
Dec 4, 2013
0.0
Version: 5.5.6
Why o why does MacUpdate track Unix software in the main Mac software channel? Just a suggestion, but i would prefer it if you had a separate tab/category for server software, daemons, CLI utilities and the like. That way, the 90% who don't use it won't have to contend with the added entries on the tracker. (I do personally use a lot of server-oriented software and CLI tools, so i would personally check that category for updates. But my preference would be to separate them out to another category listing.)
Neil-M
Neil-M
Jun 1, 2011
5.3.0-3
0.0
Jun 1, 2011
0.0
Version: 5.3.0-3
From the developers website; Note: The package on this page is outdated. I recommend this new PHP distribution for Mac OS X, it is based on mine: http://blog.liip.ch/archive/2011/04/13/php-5-3-for-os-x-10-6-one-line-installer.html http://php-osx.liip.ch/ - is the best source for a 10.6 version of php.
schmelding
schmelding
Sep 4, 2009
5.3.0-3
0.0
Sep 4, 2009
0.0
Version: 5.3.0-3
Since Snow Leopard wiped-out my install of the entropy version of PHP, does anybody know what would happen if I reinstalled this?
Neil-M
Neil-M
Jul 31, 2009
5.3.0-3
0.0
Jul 31, 2009
0.0
Version: 5.3.0-3
Now PHP 5.3.0-3 Thanks Marc for compiling this for OS X - it gets me an easy way to get an upto date php distro, with GD (not on Apple's vanilla inbuilt), etc. onto my server - without waiting, waiting for Apple to update.
Sandro-Bilbeisi
Sandro-Bilbeisi
Nov 15, 2014
5.0
Nov 15, 2014
5.0
Version: null
BlakeC6588
BlakeC6588
Oct 15, 2013
5.0
Oct 15, 2013
5.0
Version: null
Sparrowhawk
Sparrowhawk
Sep 17, 2013
5.0
Sep 17, 2013
5.0
Version: null
olamaekle
olamaekle
Aug 6, 2013
5.0
Aug 6, 2013
5.0
Version: null
Zetsurin
Zetsurin
Dec 20, 2006
5.0
Dec 20, 2006
5.0
Version: null
Guest
Guest
Sep 28, 2004
4.8
Sep 28, 2004
4.8
Version: null
Guest
Guest
May 19, 2003
5.0
May 19, 2003
5.0
Version: null