3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.php.net/'; if (!$fp = fopen($url, 'r')) { trigger_error("Unable to open URL ($url)", E_USER_ERROR); } $meta = stream_get_meta_data($fp); print_r($meta); fclose($fp); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/ENaJ5
function name:  (null)
number of ops:  26
compiled vars:  !0 = $url, !1 = $fp, !2 = $meta
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.php.net%2F'
    4     1        INIT_FCALL                                               'fopen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                           ~5      !1, $4
          6        BOOL_NOT                                         ~6      ~5
          7      > JMPZ                                                     ~6, ->15
    5     8    >   INIT_FCALL                                               'trigger_error'
          9        ROPE_INIT                                     3  ~8      'Unable+to+open+URL+%28'
         10        ROPE_ADD                                      1  ~8      ~8, !0
         11        ROPE_END                                      2  ~7      ~8, '%29'
         12        SEND_VAL                                                 ~7
         13        SEND_VAL                                                 256
         14        DO_ICALL                                                 
    8    15    >   INIT_FCALL                                               'stream_get_meta_data'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
   10    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
   12    22        INIT_FCALL                                               'fclose'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
   13    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.84 ms | 1395 KiB | 23 Q