3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = '76561198050571807'; $key = '36A35217F21921A116FB6A83455C10C2'; $link = file_get_contents('http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=36A35217F21921A116FB6A83455C10C2&steamid=76561198050571807&format=json'); $myarray = json_decode($link, true); print $myarray['response']['game_count'][0]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lWYb2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $id, !1 = $key, !2 = $link, !3 = $myarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '76561198050571807'
    3     1        ASSIGN                                                   !1, '36A35217F21921A116FB6A83455C10C2'
    5     2        INIT_FCALL                                               'file_get_contents'
          3        SEND_VAL                                                 'http%3A%2F%2Fapi.steampowered.com%2FIPlayerService%2FGetOwnedGames%2Fv0001%2F%3Fkey%3D36A35217F21921A116FB6A83455C10C2%26steamid%3D76561198050571807%26format%3Djson'
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    6     6        INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !3, $8
    8    11        FETCH_DIM_R                                      ~10     !3, 'response'
         12        FETCH_DIM_R                                      ~11     ~10, 'game_count'
         13        FETCH_DIM_R                                      ~12     ~11, 0
         14        ECHO                                                     ~12
    9    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.08 ms | 1386 KiB | 17 Q