3v4l.org

run code in 300+ PHP versions simultaneously
<?php use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; class Solution { public function __construct(private ClientInterface $client) { } public function getHost(): string { return $this->client->getConfig('base_uri'); } } $solution = new Solution(new Client(['base_uri' => 'https://internal-api.checkout51.com/'])); var_dump($solution->getHost());
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "GuzzleHttp\Client" not found in /in/BgWJ8:17 Stack trace: #0 {main} thrown in /in/BgWJ8 on line 17
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
28.72 ms | 405 KiB | 5 Q