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, false, $context); //decode response to array $responseObject = json_decode($content); var_dump($responseObject);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aEn0c
function name:  (null)
number of ops:  20
compiled vars:  !0 = $url, !1 = $opts, !2 = $context, !3 = $content, !4 = $responseObject
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        SEND_VAL                                                 <false>
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
   19    12        INIT_FCALL                                               'json_decode'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !4, $11
   21    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1395 KiB | 21 Q