New Twitch API and Auth from PHP

I tried to print out the the $i variable from line 52. This is the output. I guess something is wrong with my PHP7 installation, will try it on XAMPP server instead…

Array
(
    [url] => https://id.twitch.tv/oauth2/token
    [content_type] => 
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 20
    [redirect_count] => 0
    [total_time] => 0.36283
    [namelookup_time] => 0.018771
    [connect_time] => 0.189843
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => -1
    [starttransfer_time] => 0
    [redirect_time] => 0
    [redirect_url] => 
    [primary_ip] => 34.209.6.223
    [certinfo] => Array
        (
        )

    [primary_port] => 443
    [local_ip] => 10.0.0.3
    [local_port] => 52537
    [http_version] => 0
    [protocol] => 2
    [ssl_verifyresult] => 0
    [scheme] => HTTPS
    [appconnect_time_us] => 0
    [connect_time_us] => 189843
    [namelookup_time_us] => 18771
    [pretransfer_time_us] => 0
    [redirect_time_us] => 0
    [starttransfer_time_us] => 0
    [total_time_us] => 362830
)