3v4l.org

run code in 300+ PHP versions simultaneously
<?php // From URL to get webpage contents. $url = "https://boi.org.il/PublicApi/GetExchangeRate?key=USD"; // Initialize a CURL session. $ch = curl_init(); // Return Page contents. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //grab URL and pass it to the variable. curl_setopt($ch, CURLOPT_URL, $url); $result = curl_exec($ch); echo $result; ?>

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.5.10.0110.00716.74
8.5.00.0130.00819.90
8.4.150.0020.00114.05
8.4.140.0150.00817.99
8.4.130.0100.01018.89
8.4.120.0110.00920.43
8.4.110.0040.00418.73
8.4.100.0090.00917.71
8.4.90.0100.01120.62
8.4.80.0050.00322.66
8.4.70.0140.00719.13
8.4.60.0110.00820.52
8.4.50.0110.01118.71
8.4.40.0030.00618.09
8.4.30.0120.00318.86
8.4.20.0310.01417.66
8.4.10.0200.00718.04
8.3.280.0020.00014.05
8.3.270.0140.00516.34
8.3.260.0120.00716.63
8.3.250.0120.00817.29
8.3.240.0110.00816.71
8.3.230.0050.00316.73
8.3.220.0130.00619.03
8.3.210.0110.00618.36
8.3.200.0080.00016.65
8.3.190.0120.00717.20
8.3.180.0120.00718.80
8.3.170.0130.00617.13
8.3.160.0160.00318.30
8.3.150.0140.00716.59
8.3.140.0230.00316.41
8.3.130.0170.00316.11
8.3.120.0210.00016.33
8.3.110.0160.00316.31
8.3.100.0170.00316.60
8.3.90.0170.00316.43
8.3.80.0170.00516.50
8.3.70.0120.01216.25
8.3.60.0140.00616.24
8.3.50.0210.00016.30
8.3.40.0140.00517.35
8.3.30.0160.00317.34
8.3.20.0090.00917.18
8.3.10.0170.00017.44
8.3.00.0110.00017.20
8.2.290.0160.00418.75
8.2.280.0100.00518.51
8.2.270.0050.00316.96
8.2.260.0110.00616.34
8.2.250.0140.00516.54
8.2.240.0150.00516.29
8.2.230.0110.00516.45
8.2.220.0180.00016.86
8.2.210.0090.00916.34
8.2.200.0150.00416.59
8.2.190.0140.00316.74
8.2.180.0190.00016.36
8.2.170.0120.00617.57
8.2.160.0150.00317.52
8.2.150.0100.00817.38
8.2.140.0160.00317.35
8.2.130.0160.00317.34
8.2.120.0110.00817.46
8.2.110.0130.00517.40
8.2.100.0160.00317.34
8.2.90.0150.00317.49
8.2.80.0190.00017.08
8.2.70.0130.00417.57
8.2.60.0140.00517.43
8.2.50.0170.00017.43
8.2.40.0160.00017.21
8.2.30.0170.00017.29
8.2.20.0060.01017.13
8.2.10.0080.00817.41
8.2.00.0250.00017.09
8.1.320.0120.00616.43

preferences:
53.92 ms | 403 KiB | 5 Q