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(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l8Uqe
function name:  (null)
number of ops:  15
compiled vars:  !0 = $client, !1 = $uri, !2 = $header, !3 = $response, !4 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'vendor%2Fautoload.php', REQUIRE
    4     1        NEW                                              $6      'GuzzleHttp%5CClient'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $6
    6     4        ASSIGN                                                   !1, 'http%3A%2F%2Fapi.football-data.org%2Fv1%2Fsoccerseasons%2F354%2FleagueTable'
    7     5        ASSIGN                                                   !2, <array>
    8     6        INIT_METHOD_CALL                                         !0, 'get'
          7        SEND_VAR_EX                                              !1
          8        SEND_VAR_EX                                              !2
          9        DO_FCALL                                      0  $11     
         10        ASSIGN                                                   !3, $11
    9    11        INIT_METHOD_CALL                                         !3, 'json'
         12        DO_FCALL                                      0  $13     
         13        ASSIGN                                                   !4, $13
   10    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.14 ms | 1393 KiB | 13 Q