3v4l.org

run code in 300+ PHP versions simultaneously
<?php class XMLTransactionHander { public function __construct($params) { $this->URL = $params[0]; $this->XMLRequest = $params[1]; $this->XMLResponseRaw = $params[2]; $this->XPath = $params[3]; $this->errno = $params[4]; } function curlRequest() { // Configure headers, etc for request $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $this->URL); curl_setopt($ch, CURLOPT_TIMEOUT, 180); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $this->XMLRequest); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $httpHeader = array("Content-Type: text/xml; charset=UTF-8", "Content-Encoding: UTF-8"); curl_setopt($ch, CURLOPT_HTTPHEADER, $httpHeader); // Execute request, store response and HTTP response code $data=curl_exec($ch); $this->errno = curl_getinfo( $ch, CURLINFO_HTTP_CODE ); curl_close($ch); return($data); } function something(){ return($this->URL.' '.$this->XMLRequest); } }
Output for git.master, git.master_jit, rfc.property-hooks

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.66 ms | 401 KiB | 8 Q