3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class PaypalRepository { /** * @var string */ private string $apiUrl = null; public function __construct() { if (rand(0,1)) { $this->apiUrl = 'https://example.com/'; } else { $this->apiUrl = 'https://another.example.com/'; } unset($this->apiUrl); var_dump($this->apiUrl); } } new PaypalRepository();

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.00.0130.00628.09
8.2.130.0070.01128.09
8.2.120.0090.00928.09
8.2.110.0000.01928.09
8.2.100.0060.01328.09
8.2.90.0110.00728.09
8.2.80.0100.01028.09
8.2.70.0120.00628.09
8.2.60.0130.00628.09
8.2.50.0170.00328.09
8.2.40.0090.00928.09
8.2.30.0040.01128.09
8.2.20.0140.00328.09
8.2.10.0120.00328.09
8.2.00.0150.00028.09
8.1.260.0040.01128.09
8.1.250.0140.00028.09
8.1.240.0100.00628.09
8.1.230.0130.00328.09
8.1.220.0120.00328.09
8.1.210.0040.00428.09
8.1.200.0030.00628.09
8.1.190.0070.00728.09
8.1.180.0030.00628.09
8.1.170.0040.00428.09
8.1.160.0120.00328.09
8.1.150.0060.00328.09
8.1.140.0080.00028.09
8.1.130.0120.00328.09
8.1.120.0060.00928.09
8.1.110.0050.00328.09
8.1.100.0080.00028.09
8.1.90.0050.00328.09
8.1.80.0150.00028.09
8.1.70.0120.00328.09
8.1.60.0050.00328.09
8.1.50.0050.00328.09
8.1.40.0030.00528.09
8.1.30.0120.00328.09
8.1.20.0070.00728.09
8.1.10.0060.00928.09
8.1.00.0040.00428.09

preferences:
142 ms | 976 KiB | 8 Q