3v4l.org

run code in 300+ PHP versions simultaneously
<?php $opts = array('http' => array( 'method' => "GET", 'header' => "Authorization: Basic ". base64_encode('britInfoPUB:bcac9a90f4d5109cba0d726696a43f14') . "")); $context = stream_context_create($opts); // Open the file using the HTTP headers set above $file = file_get_contents('https://api-sandbox-evvnt.herokuapp.com/events?max_results=1', false, $context); echo $file; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oi9EV
function name:  (null)
number of ops:  21
compiled vars:  !0 = $opts, !1 = $context, !2 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~3      'GET', 'method'
    4     1        INIT_FCALL                                               'base64_encode'
          2        SEND_VAL                                                 'britInfoPUB%3Abcac9a90f4d5109cba0d726696a43f14'
          3        DO_ICALL                                         $4      
          4        CONCAT                                           ~5      'Authorization%3A+Basic+', $4
    5     5        CONCAT                                           ~6      ~5, ''
          6        ADD_ARRAY_ELEMENT                                ~3      ~6, 'header'
          7        INIT_ARRAY                                       ~7      ~3, 'http'
    2     8        ASSIGN                                                   !0, ~7
    6     9        INIT_FCALL                                               'stream_context_create'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !1, $9
    9    13        INIT_FCALL                                               'file_get_contents'
         14        SEND_VAL                                                 'https%3A%2F%2Fapi-sandbox-evvnt.herokuapp.com%2Fevents%3Fmax_results%3D1'
         15        SEND_VAL                                                 <false>
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
   11    19        ECHO                                                     !2
   12    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.01 ms | 1386 KiB | 19 Q