February 7, 2019 By Carlos Santana < 1 min read

What’s happening with IBM Cloud Functions and PHP?

I’m excited to announce that IBM Cloud Functions officially supports PHP 7.3, which has been optimized for latency.

The new PHP 7.3 runtime leverages a new web proxy built with Go that replaces the previous Python web proxy. This allows action invocations to respond faster by providing lower latency for blocking calls.

Ready to try it out?

  1. Create the following PHP file.

    function main(array $args) : array
    $name = $args["name"] ?? "IBM Cloud";
    $greeting = "Hello $name!";
    return ["body" => $greeting];<br ?-->
  2. Create the helloPHP action.

    ibmcloud fn action update helloPHP hello.php --kind php:7.3 --web true
  3. Invoke the action.

    ibmcloud fn action invoke helloPHP -r
    "body": "Hello IBM Cloud!"
  4. Get the URL for the web action.

    ibmcloud fn action get helloPHP --url
  5. Open the URL in your browser.

How much faster is PHP 7.3?

As you can see in the graph below comparing warm invocation performance, PHP 7.3 is much faster than PHP 7.1 or PHP 7.2. Start new projects by using PHP 7.3 or migrate any existing actions.

How do I learn more?

To set up a project and deploy your PHP 7.3 action, check out the IBM Cloud Functions documentation.

More from Announcements

IBM Hybrid Cloud Mesh and Red Hat Service Interconnect: A new era of app-centric connectivity 

2 min read - To meet customer demands, applications are expected to be performing at their best at all times. Simultaneously, applications need to be flexible and cost effective, and therefore supported by an underlying infrastructure that is equally reliant, performant and secure as the applications themselves.   Easier said than done. According to EMA's 2024 Network Management Megatrends report only 42% of responding IT professionals would rate their network operations as successful.   In this era of hyper-distributed infrastructure where our users, apps, and data…

IBM named a Leader in Gartner Magic Quadrant for SIEM, for the 14th consecutive time

3 min read - Security operations is getting more complex and inefficient with too many tools, too much data and simply too much to do. According to a study done by IBM, SOC team members are only able to handle half of the alerts that they should be reviewing in a typical workday. This potentially leads to missing the important alerts that are critical to an organization's security. Thus, choosing the right SIEM solution can be transformative for security teams, helping them manage alerts…

IBM and MuleSoft expand global relationship to accelerate modernization on IBM Power 

2 min read - As companies undergo digital transformation, they rely on APIs as the backbone for providing new services and customer experiences. While APIs can simplify application development and deliver integrated solutions, IT shops must have a robust solution to effectively manage and govern them to ensure that response times and costs are kept low for all applications. Many customers use Salesforce’s MuleSoft, named a leader by Gartner® in full lifecycle API management for seven consecutive times, to manage and secure APIs across…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters