3v4l.org

run code in 300+ PHP versions simultaneously
<?php function expandShortUrl($shortUrl) { $ch = curl_init($shortUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $expandedUrl = curl_exec($ch); curl_close($ch); return $expandedUrl; } function expandShortUrls($shortUrls) { $expandedUrls = array(); foreach ($shortUrls as $shortUrl) { $expandedUrl = expandShortUrl($shortUrl); $expandedUrls[] = $expandedUrl; } return $expandedUrls; } // Kısa linkler $shortUrls = array( "https://www.etsy.com/listing/664135699", "https://www.etsy.com/listing/612721265", "https://www.etsy.com/listing/596197569", "https://www.etsy.com/listing/576635976", "https://www.etsy.com/listing/466790858", "https://www.etsy.com/listing/249127718", "https://www.etsy.com/listing/232208668", "https://www.etsy.com/listing/1741336387", "https://www.etsy.com/listing/1680069076", "https://www.etsy.com/listing/1659620413" ); // Kısa linkleri genişlet $expandedUrls = expandShortUrls($shortUrls); // Genişletilmiş linkleri yazdır foreach ($expandedUrls as $index => $expandedUrl) { echo ($index + 1) . ". " . $expandedUrl . "\n"; }

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.00020.94
8.3.100.0040.00416.66
8.3.90.0130.00616.88
8.3.80.0300.00930.84
8.3.70.0190.00630.84
8.3.60.0060.00330.84
8.3.50.0060.00330.84
8.3.40.0160.00430.84
8.3.30.0230.00030.84
8.3.20.0160.00830.84
8.3.10.0170.01430.84
8.3.00.0240.00430.84
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0000.00826.77
8.2.200.0170.00830.84
8.2.190.0220.00030.84
8.2.180.0220.00030.84
8.2.170.0250.00730.84
8.2.160.0170.01130.84
8.2.150.0180.00530.84
8.2.140.0180.00630.84
8.2.130.0190.00830.84
8.2.120.0200.00730.84
8.2.110.0170.00730.84
8.2.100.0190.00430.84
8.2.90.0160.00630.84
8.2.80.0160.00630.84
8.2.70.0210.00330.84
8.2.60.0080.00330.84
8.2.50.0190.00330.84
8.2.40.0230.00030.84
8.2.30.0310.00030.84
8.2.20.0190.00430.84
8.2.10.0180.00330.84
8.2.00.0180.00330.84
8.1.290.0200.00330.84
8.1.280.0130.00930.84
8.1.270.0210.00330.84
8.1.260.0190.00630.84
8.1.250.0180.00530.84
8.1.240.0140.01130.84
8.1.230.0230.00730.84
8.1.220.0290.01030.84
8.1.210.0110.01530.84
8.1.200.0230.00630.84
8.1.190.0290.00030.84
8.1.180.0190.01130.84
8.1.170.0300.00930.84
8.1.160.0290.01130.84
8.1.150.0260.01030.84
8.1.140.0240.01530.84
8.1.130.0360.00030.84
8.1.120.0360.00630.84
8.1.110.0470.00930.84
8.1.100.0350.00430.84
8.1.90.0230.00630.84
8.1.80.0120.00830.84
8.1.70.0140.00530.84
8.1.60.0100.01030.84
8.1.50.0180.00430.84
8.1.40.0310.00430.84
8.1.30.0200.00330.84
8.1.20.0150.00730.84
8.1.10.0200.00330.84
8.1.00.0220.00030.84

preferences:
29.48 ms | 403 KiB | 5 Q