3v4l.org

run code in 300+ PHP versions simultaneously
<?php $requestXML = ''; $arr = array('http'=> array( 'method'=>'POST', 'follow_location'=>0, 'content' => $requestXML ) ); $context = stream_context_create($arr); $f = fopen('http://www.example.com', 'r', FALSE, $context); echo stream_get_contents($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kU2SG
function name:  (null)
number of ops:  22
compiled vars:  !0 = $requestXML, !1 = $arr, !2 = $context, !3 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    5     1        INIT_ARRAY                                       ~5      'POST', 'method'
    6     2        ADD_ARRAY_ELEMENT                                ~5      0, 'follow_location'
    7     3        ADD_ARRAY_ELEMENT                                ~5      !0, 'content'
          4        INIT_ARRAY                                       ~6      ~5, 'http'
    3     5        ASSIGN                                                   !1, ~6
   11     6        INIT_FCALL                                               'stream_context_create'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
   12    10        INIT_FCALL                                               'fopen'
         11        SEND_VAL                                                 'http%3A%2F%2Fwww.example.com'
         12        SEND_VAL                                                 'r'
         13        SEND_VAL                                                 <false>
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
   14    17        INIT_FCALL                                               'stream_get_contents'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $12     
         20        ECHO                                                     $12
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.99 ms | 1395 KiB | 19 Q