3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://ws.audioscrobbler.com'; $endpoint = '2.0'; $params = array( 'method' => 'user.getrecenttracks', 'user' => 'djekl', 'api_key' => 'ec23317a230c09ebf945ca738d24243e', 'format' => 'json', 'limit' => '200', ); $url = $url . '/' . $endpoint . '/?' . http_build_query($params); $json = file_get_contents($url); if ($json = json_decode($json)) { print_r($json); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/kiYBI
function name:  (null)
number of ops:  24
compiled vars:  !0 = $url, !1 = $endpoint, !2 = $params, !3 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fws.audioscrobbler.com'
    4     1        ASSIGN                                                   !1, '2.0'
    5     2        ASSIGN                                                   !2, <array>
   13     3        CONCAT                                           ~7      !0, '%2F'
          4        CONCAT                                           ~8      ~7, !1
          5        CONCAT                                           ~9      ~8, '%2F%3F'
          6        INIT_FCALL                                               'http_build_query'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $10     
          9        CONCAT                                           ~11     ~9, $10
         10        ASSIGN                                                   !0, ~11
   15    11        INIT_FCALL                                               'file_get_contents'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !3, $13
   17    15        INIT_FCALL                                               'json_decode'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $15     
         18        ASSIGN                                           ~16     !3, $15
         19      > JMPZ                                                     ~16, ->23
   18    20    >   INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
   19    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 940 KiB | 22 Q