3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); $url = "https://api.uds.app/partner/v2/settings"; $uuid_v4 = 'UUID'; //generate universally unique identifier version 4 (RFC 4122) $companyId = 123; //set ID of your company $apiKey = 'ZDk1MmE5NzMtODcxNi00YzIwLTllZDMtN2ZjM2NjOGI2YTMz'; //set company apikey // Create a stream $opts = array( 'http' => array( 'method' => 'GET', 'header' => "Accept: application/json\r\n" . "Accept-Charset: utf-8\r\n" . "Authorization: Basic ". base64_encode("$companyId:$apiKey")."\r\n" . "X-Origin-Request-Id: ".$uuid_v4."\r\n" . "X-Timestamp: ".$date->format(DateTime::ATOM) ) ); $context = stream_context_create($opts); $result = file_get_contents($url, false, $context); echo $result;
Output for git.master_jit, git.master
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/pjpKQ on line 23 Warning: file_get_contents(): open_basedir restriction in effect. File(https://api.uds.app/partner/v2/settings) is not within the allowed path(s): (/tmp:/in:/etc) in /in/pjpKQ on line 23 Warning: file_get_contents(https://api.uds.app/partner/v2/settings): Failed to open stream: Operation not permitted in /in/pjpKQ on line 23

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:
42.59 ms | 406 KiB | 5 Q