3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pixel { public $orderDateTime; public $domain; public $publId; public $privId; } class PixelHandling extends SoapClient{ // Client connection private $soapclient_options = array('login' => 'SlevogtE', 'password' => 'BBDEXI', 'trace' => 1); private $wsdl = 'https://' . $soapclient_options['login'] . ':' . $soapclient_options['password'] . '@tom-test.vgwort.de/services/1.0/pixelService.wsdl' ; private $client; function __construct(){ $this->client = new SoapClient($wsdl, $soapclient_options); } // Order Pixel (amount) --> pixels will be written to array $pixels public function orderNewPixel($amount){ $params = new StdClass(); $params->count = $amount; $arr = array(); try{ $result = $this->client->orderPixel($params); foreach($result as $val){ $pixels = new Pixel(); $pixels->orderDateTime = $val->orderDateTime; $pixels->domain = $val->domain; $pixels->publId = $val->pixels->publicIdentificationId; $pixels->privId = $val->pixels->privateIdentificationId; array_push($arr, $pixels); } } catch(SoapFault $e){ echo "Fehlercode: ", $result->errorcode, "\n"; echo "Message: ", $result->errormsg, "\n"; echo "Folgende Anzahl waere moeglich gewesen: ", $result->maxOrder, "\n"; } return $arr; } } // Check whether Soap can be even used.. if(!class_exists('SoapClient')){ echo '<script type="text/javascript" language="Javascript">alert("Fehler: PHP-Modul fehlt.")</script>'; } $test = new PixelHandling(); $test->orderNewPixel(2); // Format für Pixel export // <IMG src="domain.met.vgwort.de/na/c5b7568d28884052a9ff92d5afd08f34" // height="1" width="1" border=“0“> ?>

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)
5.4.280.0140.06012.38
5.4.270.0140.06712.38
5.4.260.0100.05112.38
5.4.250.0120.06712.38
5.4.240.0110.06012.38
5.4.230.0110.05712.37
5.4.220.0120.06412.37
5.4.210.0140.06912.37
5.4.200.0090.05912.37
5.4.190.0110.05612.37
5.4.180.0080.06012.37
5.4.170.0060.05312.37
5.4.160.0110.04712.37
5.4.150.0130.05712.37
5.4.140.0110.06512.06
5.4.130.0140.05812.04
5.4.120.0100.06612.00
5.4.110.0100.05012.00
5.4.100.0120.04612.00
5.4.90.0130.08512.00
5.4.80.0110.05412.00
5.4.70.0090.04612.00
5.4.60.0100.04812.00
5.4.50.0130.05712.00
5.4.40.0100.05011.98
5.4.30.0210.06811.98
5.4.20.0100.06811.97
5.4.10.0090.05911.98
5.4.00.0060.05711.47
5.3.280.0130.05312.71
5.3.270.0170.06912.73
5.3.260.0110.05812.72
5.3.250.0110.07212.72
5.3.240.0190.06912.72
5.3.230.0110.05312.71
5.3.220.0140.05712.68
5.3.210.0100.06012.68
5.3.200.0110.06612.68
5.3.190.0120.05612.68
5.3.180.0130.06212.67
5.3.170.0080.05012.67
5.3.160.0100.05012.67
5.3.150.0100.04812.67
5.3.140.0120.05312.66
5.3.130.0110.05512.66
5.3.120.0130.05112.65
5.3.110.0110.05712.66
5.3.100.0150.05112.12
5.3.90.0120.05912.08
5.3.80.0130.05412.07
5.3.70.0140.05312.07
5.3.60.0160.05112.06
5.3.50.0150.05712.00
5.3.40.0100.05612.00
5.3.30.0110.04611.95
5.3.20.0090.05011.74
5.3.10.0110.05811.70
5.3.00.0120.05811.69

preferences:
139.03 ms | 1394 KiB | 7 Q