3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = fopen ("http://www.tricor.com.br/", "r"); if (!$file) { echo "<p>Incapaz de abrir arquivo remoto.\n"; exit; } while (!feof ($file)) { $line = fgets ($file, 1024); /* Isso só funciona se o título e suas tags estiverem na mesma linha */ if (eregi ("<title>(.*)</title>", $line, $out)) { $title = $out[1]; break; } } fclose($file); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 10
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 24
filename:       /in/mjSGS
function name:  (null)
number of ops:  33
compiled vars:  !0 = $file, !1 = $line, !2 = $out, !3 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.tricor.com.br%2F'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    3     5        BOOL_NOT                                         ~6      !0
          6      > JMPZ                                                     ~6, ->9
    4     7    >   ECHO                                                     '%3Cp%3EIncapaz+de+abrir+arquivo+remoto.%0A'
    5     8      > EXIT                                                     
    7     9    > > JMP                                                      ->24
    8    10    >   INIT_FCALL                                               'fgets'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 1024
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
   10    15        INIT_FCALL_BY_NAME                                       'eregi'
         16        SEND_VAL_EX                                              '%3Ctitle%3E%28.%2A%29%3C%2Ftitle%3E'
         17        SEND_VAR_EX                                              !1
         18        SEND_VAR_EX                                              !2
         19        DO_FCALL                                      0  $9      
         20      > JMPZ                                                     $9, ->24
   11    21    >   FETCH_DIM_R                                      ~10     !2, 1
         22        ASSIGN                                                   !3, ~10
   12    23      > JMP                                                      ->29
    7    24    >   INIT_FCALL                                               'feof'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $12     
         27        BOOL_NOT                                         ~13     $12
         28      > JMPNZ                                                    ~13, ->10
   15    29    >   INIT_FCALL                                               'fclose'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                                 
   16    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.3 ms | 1396 KiB | 21 Q