3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'triathlon.com/espresso-api/v1/authenticate?username=evenements&password=!Poumon123'; $data = array('key1' => 'value1', 'key2' => 'value2'); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): open_basedir restriction in effect. File(triathlon.com/espresso-api/v1/authenticate?username=evenements&password=!Poumon123) is not within the allowed path(s): (/tmp:/in:/etc) in /in/T6VmV on line 13 Warning: file_get_contents(triathlon.com/espresso-api/v1/authenticate?username=evenements&password=!Poumon123): Failed to open stream: Operation not permitted in /in/T6VmV on line 13 bool(false)

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:
63.85 ms | 402 KiB | 8 Q