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.

    <!--?php
    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

Enabling customers to streamline document management with IBM watsonx.ai

2 min read - At Accusoft, our mission is to help organizations solve their most complex content workflow challenges by helping them adopt content processing, conversion and automation solutions. We accomplish this through our flagship product, PrizmDoc, which enables developers to enhance their applications with in-browser document viewing and collaboration functionality.  Over the past several years, we’ve been closely monitoring the evolving role of artificial intelligence (AI) in delivering cutting-edge solutions to our customers. Unlike many competitors who hastily incorporate AI  to check a…

Success and recognition of IBM offerings in G2 Summer Reports  

2 min read - IBM offerings were featured in over 1,365 unique G2 reports, earning over 230 Leader badges across various categories.   This recognition is important to showcase our leading products and also to provide the unbiased validation our buyers seek. According to the 2024 G2 Software Buyer Behavior Report, “When researching software, buyers are most likely to trust information from people with similar roles and challenges, and they value transparency above other factors.”  With over 90 million visitors each year and hosting more than 2.6…

Manage the routing of your observability log and event data 

4 min read - Comprehensive environments include many sources of observable data to be aggregated and then analyzed for infrastructure and app performance management. Connecting and aggregating the data sources to observability tools need to be flexible. Some use cases might require all data to be aggregated into one common location while others have narrowed scope. Optimizing where observability data is processed enables businesses to maximize insights while managing to cost, compliance and data residency objectives.  As announced on 29 March 2024, IBM Cloud® released its next-gen observability…

IBM Newsletters

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