3v4l.org

run code in 300+ PHP versions simultaneously
<?php $context = stream_context_create(array('http' => array('follow_location' => 1, 'max_redirects' => 1))); $fp = fopen('http://google.com', 'r', false, $context); var_dump(stream_get_contents($fp));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Vojd
function name:  (null)
number of ops:  18
compiled vars:  !0 = $context, !1 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'stream_context_create'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 'http%3A%2F%2Fgoogle.com'
          6        SEND_VAL                                                 'r'
          7        SEND_VAL                                                 <false>
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    5    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'stream_get_contents'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.07 ms | 939 KiB | 22 Q