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());

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.110.0070.01020.94
8.3.100.0000.00716.62
8.3.90.0050.00318.56
8.3.80.0350.01030.84
8.3.70.0290.00330.84
8.3.60.0230.00330.84
8.3.50.0030.00730.84
8.3.40.0150.00630.84
8.3.30.0220.00430.84
8.3.20.0210.00530.84
8.3.10.0240.00330.84
8.3.00.0150.01530.84
8.2.230.0080.00022.58
8.2.220.0080.00037.54
8.2.210.0040.01226.77
8.2.200.0210.00030.84
8.2.190.0220.00030.84
8.2.180.0170.00730.84
8.2.170.0180.00630.84
8.2.160.0170.00630.84
8.2.150.0190.00530.84
8.2.140.0240.00230.84
8.2.130.0330.00330.84
8.2.120.0420.00330.84
8.2.110.0340.01230.84
8.2.100.0360.00730.84
8.2.90.0380.00830.84
8.2.80.0360.00030.84
8.2.70.0270.00530.84
8.2.60.0220.01530.84
8.2.50.0270.00330.84
8.2.40.0160.00830.84
8.2.30.0150.00730.84
8.2.20.0200.00430.84
8.2.10.0210.00330.84
8.2.00.0170.00330.84
8.1.290.0210.00030.84
8.1.280.0220.00430.84
8.1.270.0170.00630.84
8.1.260.0190.00530.84
8.1.250.0160.01230.84
8.1.240.0240.00030.84
8.1.230.0190.00530.84
8.1.220.0280.00630.84
8.1.210.0270.01330.84
8.1.200.0250.01130.84
8.1.190.0270.00330.84
8.1.180.0310.00830.84
8.1.170.0340.00730.84
8.1.160.0310.00930.84
8.1.150.0280.00830.84
8.1.140.0340.00430.84
8.1.130.0420.00730.84
8.1.120.0440.00630.84
8.1.110.0340.00630.84
8.1.100.0280.01130.84
8.1.90.0200.01730.84
8.1.80.0360.00330.84
8.1.70.0290.01230.84
8.1.60.0290.00730.84
8.1.50.0340.01030.84
8.1.40.0380.00630.84
8.1.30.0370.00730.84
8.1.20.0380.01230.84
8.1.10.0270.01730.84
8.1.00.0260.00730.84

preferences:
27.96 ms | 403 KiB | 5 Q