3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = date("d"); $m = date("m"); $Y = date("Y"); $day = date("d/m/Y", mktime(0, 0, 0, $m, $d-1, $Y)); $method = "getValor"; $currency_cod = "1"; $WsSOAP = new SoapClient("https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl"); try { $response = $WsSOAP -> $method($currency_cod,$day); if (isset($response) && !empty($response)) { print_r($dolar); } } catch (Exception $Exception) { echo(getMessage()); }

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.60.0130.00618.55
8.3.50.0060.00918.33
8.3.40.0090.00619.09
8.3.30.0050.01018.97
8.3.20.0040.00419.29
8.3.10.0060.00323.70
8.3.00.0000.00820.62
8.2.180.0090.00618.27
8.2.170.0100.00722.96
8.2.160.0110.00422.09
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00018.03
8.2.120.0030.00526.35
8.2.110.0060.00320.38
8.2.100.0040.00817.84
8.2.90.0060.00317.88
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0040.00418.09
8.2.50.0030.00518.10
8.2.40.0040.00419.34
8.2.30.0060.00319.25
8.2.20.0030.00618.17
8.2.10.0040.00418.13
8.2.00.0080.00017.78
8.1.280.0060.01225.92
8.1.270.0000.00820.68
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0000.00922.50
8.1.230.0080.00417.42
8.1.220.0050.00317.79
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00518.46
8.1.160.0030.00318.82
8.1.150.0040.00418.90
8.1.140.0070.00022.19
8.1.130.0030.00320.27
8.1.120.0000.00717.57
8.1.110.0040.00417.54
8.1.100.0050.00317.50
8.1.90.0070.00017.53
8.1.80.0040.00417.50
8.1.70.0000.00917.54
8.1.60.0000.00917.57
8.1.50.0000.00817.64
8.1.40.0030.00617.54
8.1.30.0040.00417.74
8.1.20.0000.00917.55
8.1.10.0080.00317.66
8.1.00.0080.00017.65
8.0.300.0040.00418.77
8.0.290.0000.00816.58
8.0.280.0000.00718.56
8.0.270.0030.00317.21
8.0.260.0000.00618.42
8.0.250.0030.00317.05
8.0.240.0040.00417.11
8.0.230.0030.00317.13
8.0.220.0000.00716.98
8.0.210.0030.00317.01
8.0.200.0000.00716.95
8.0.190.0000.00816.98
8.0.180.0050.00317.08
8.0.170.0000.00817.02
8.0.160.0040.00416.98
8.0.150.0000.00716.98
8.0.140.0070.00017.00
8.0.130.0030.00313.36
8.0.120.0040.00417.00
8.0.110.0000.00716.98
8.0.100.0040.00416.97
8.0.90.0040.00417.02
8.0.80.0090.00817.02
8.0.70.0070.00416.88
8.0.60.0060.00316.99
8.0.50.0000.00816.98
8.0.30.0070.01217.05
8.0.20.0100.01017.40
8.0.10.0040.00417.15
8.0.00.0070.01117.04
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0070.00016.67
7.4.290.0000.00616.56
7.4.280.0000.00916.67
7.4.270.0090.00016.66
7.4.260.0070.00016.51
7.4.250.0030.00316.64
7.4.240.0030.00316.59
7.4.230.0000.00716.70
7.4.220.0040.00416.78
7.4.210.0090.00816.66
7.4.200.0000.00716.32
7.4.160.0070.01016.71
7.4.140.0110.00717.86
7.4.130.0090.00916.68
7.4.120.0070.01216.63
7.3.330.0000.00513.32
7.3.320.0030.00313.33
7.3.310.0000.00816.54
7.3.300.0000.00716.42
7.3.290.0070.00016.29
7.3.280.0070.01016.37
7.3.260.0100.00816.52
7.3.240.0100.00916.61
7.2.80.0330.01114.71

preferences:
55.03 ms | 401 KiB | 5 Q