3v4l.org

run code in 300+ PHP versions simultaneously
<?php //post url $url = "https://api.github.com/repos/php/web-bugs/pulls/31"; //set file_get_contents header info $opts = [ 'http' => [ 'ignore_errors' => '1', 'user_agent' => "bugs.php.net Pulltracker", ] ]; //initiate file_get_contents $context = stream_context_create($opts); //make request $content = file_get_contents($url); //decode response to array $response_array = json_decode($content); var_dump($response_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlILq
function name:  (null)
number of ops:  18
compiled vars:  !0 = $url, !1 = $opts, !2 = $context, !3 = $content, !4 = $response_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fapi.github.com%2Frepos%2Fphp%2Fweb-bugs%2Fpulls%2F31'
    6     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'stream_context_create'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
   16     6        INIT_FCALL                                               'file_get_contents'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !3, $9
   19    10        INIT_FCALL                                               'json_decode'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $11     
         13        ASSIGN                                                   !4, $11
   21    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.49 ms | 1394 KiB | 21 Q