3v4l.org

run code in 300+ PHP versions simultaneously
<?php require 'vendor/autoload.php'; use GuzzleHttp\Client; $client = new Client(); $uri = 'http://api.football-data.org/v1/soccerseasons/354/leagueTable'; $header = array('headers' => array('X-Auth-Token' => 'b89c9b18195c44ab833db9e2a4dc8145')); $response = $client->get($uri, $header); $json = $response->json(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: require(): open_basedir restriction in effect. File(vendor/autoload.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/l8Uqe on line 2 Warning: require(vendor/autoload.php): Failed to open stream: Operation not permitted in /in/l8Uqe on line 2 Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='.:') in /in/l8Uqe:2 Stack trace: #0 {main} thrown in /in/l8Uqe on line 2
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:
35.88 ms | 401 KiB | 8 Q