3v4l.org

run code in 300+ PHP versions simultaneously
<?php // jSON Request URL $json_url = 'https://creativecommons.tankerkoenig.de/json/detail.php?callback=jQuery21109931204902741544_1440230150966&id=fb79c457-543a-4ff6-ba70-cd270ac2110a&apikey=00000000-0000-0000-0000-000000000001&_=1440230150968'; $username = ‘your_username’; // authentication $password = ‘your_password’; // authentication // jSON String for request $json_string = 'station->e5'; // Initializing curl $ch = curl_init( $json_url ); // Configuring curl options $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_USERPWD => $username . ":" . $password, // authentication CURLOPT_HTTPHEADER => array('Content-type: application/json') , CURLOPT_POSTFIELDS => $json_string ); // Setting curl options curl_setopt_array( $ch, $options ); // Getting results $result = curl_exec($ch); // Getting jSON result string ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "‘your_username’" in /in/DsI5S:6 Stack trace: #0 {main} thrown in /in/DsI5S on line 6
Process exited with code 255.

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:
64.32 ms | 401 KiB | 8 Q