3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init(); curl_setopt($curl, CURLOPT_URL,'https://api.companieshouse.gov.uk/company/{$values["CN_Find"]}'); curl_setopt($curl, CURLOPT_USERPWD,"xxxxvNNXnY74231mF2P27ZwMyyoULOM1vfdcgh"); curl_setopt($curl, CURLOPT_INTERFACE, NULL); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); ; // Send the request & save response to $resp $resp = curl_exec($curl); // Close request to clear up some resources curl_close($curl); $data = $resp; $resp = json_decode($data, true); var_dump( ) ; //********** Redirect to another page ************ header("Location: subscriptions1_edit.php?editid1=".$keys["ID_Sub"]); exit() }
Output for 8.0.0 - 8.0.26, 8.1.0 - 8.1.13, 8.2.0
Parse error: Unmatched '}' in /in/b20ks on line 25
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Parse error: syntax error, unexpected '}' in /in/b20ks on line 25
Process exited with code 255.

preferences:
298.66 ms | 1388 KiB | 343 Q