3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://stof.notk.org/'; $fp = @fopen($url, 'r', false); if (false === $fp) { throw new Exception("Unable to connect ! "); } stream_set_blocking($fp, 1); stream_set_timeout($fp, 60); stream_socket_shutdown($fp, STREAM_SHUT_WR); $result = stream_get_contents($fp); fclose($fp); var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EUnpf
function name:  (null)
number of ops:  38
compiled vars:  !0 = $url, !1 = $fp, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fstof.notk.org%2F'
    5     1        BEGIN_SILENCE                                    ~4      
          2        INIT_FCALL                                               'fopen'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'r'
          5        SEND_VAL                                                 <false>
          6        DO_ICALL                                         $5      
          7        END_SILENCE                                              ~4
          8        ASSIGN                                                   !1, $5
    7     9        TYPE_CHECK                                    4          !1
         10      > JMPZ                                                     ~7, ->15
    8    11    >   NEW                                              $8      'Exception'
         12        SEND_VAL_EX                                              'Unable+to+connect+%21+'
         13        DO_FCALL                                      0          
         14      > THROW                                         0          $8
   11    15    >   INIT_FCALL                                               'stream_set_blocking'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 1
         18        DO_ICALL                                                 
   12    19        INIT_FCALL                                               'stream_set_timeout'
         20        SEND_VAR                                                 !1
         21        SEND_VAL                                                 60
         22        DO_ICALL                                                 
   13    23        INIT_FCALL                                               'stream_socket_shutdown'
         24        SEND_VAR                                                 !1
         25        SEND_VAL                                                 1
         26        DO_ICALL                                                 
   15    27        INIT_FCALL                                               'stream_get_contents'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                         $13     
         30        ASSIGN                                                   !2, $13
   17    31        INIT_FCALL                                               'fclose'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                                 
   19    34        INIT_FCALL                                               'var_dump'
         35        SEND_VAR                                                 !2
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.26 ms | 1396 KiB | 27 Q