3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "HOLA\n"; $text = file_get_contents('rawnike.php'); // $text = file_get_contents('http://www.facebook.com/plugins/fan.php?connections=10000&id=15087023444'); $text = preg_replace("/<script[^>]+\>/i", "", $text); $text = preg_replace("/<img[^>]+\>/i", "", $text); $pattern = '!(https?://[^\s]+)!'; // refine this for better/more specific results if (preg_match_all($pattern, $text, $matches)) { list(, $links) = ($matches); //print_r($links); //var_dump($links); } unset($links[0]);unset($links[1]);unset($links[2]);unset($links[3]);unset($links[4]);unset($links[5]);unset($links[6]);unset($links[7]); //var_dump($links); $links=str_replace('https','http',$links); $links=str_replace('\"','',$links); foreach ($links as $value) { echo "fb user ID: $value<br />\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 28
Branch analysis from position: 24
2 jumps found. (Code = 77) Position 1 = 49, Position 2 = 55
Branch analysis from position: 49
2 jumps found. (Code = 78) Position 1 = 50, Position 2 = 55
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
Branch analysis from position: 28
filename:       /in/WGCQF
function name:  (null)
number of ops:  57
compiled vars:  !0 = $text, !1 = $pattern, !2 = $matches, !3 = $links, !4 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'HOLA%0A'
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'rawnike.php'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    6     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%3Cscript%5B%5E%3E%5D%2B%5C%3E%2Fi'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !0, $7
    7    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%2F%3Cimg%5B%5E%3E%5D%2B%5C%3E%2Fi'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !0, $9
   10    17        ASSIGN                                                   !1, '%21%28https%3F%3A%2F%2F%5B%5E%5Cs%5D%2B%29%21'
   12    18        INIT_FCALL                                               'preg_match_all'
         19        SEND_VAR                                                 !1
         20        SEND_VAR                                                 !0
         21        SEND_REF                                                 !2
         22        DO_ICALL                                         $12     
         23      > JMPZ                                                     $12, ->28
   13    24    >   QM_ASSIGN                                        ~13     !2
         25        FETCH_LIST_R                                     $14     ~13, 1
         26        ASSIGN                                                   !3, $14
         27        FREE                                                     ~13
   18    28    >   UNSET_DIM                                                !3, 0
         29        UNSET_DIM                                                !3, 1
         30        UNSET_DIM                                                !3, 2
         31        UNSET_DIM                                                !3, 3
         32        UNSET_DIM                                                !3, 4
         33        UNSET_DIM                                                !3, 5
         34        UNSET_DIM                                                !3, 6
         35        UNSET_DIM                                                !3, 7
   20    36        INIT_FCALL                                               'str_replace'
         37        SEND_VAL                                                 'https'
         38        SEND_VAL                                                 'http'
         39        SEND_VAR                                                 !3
         40        DO_ICALL                                         $16     
         41        ASSIGN                                                   !3, $16
         42        INIT_FCALL                                               'str_replace'
         43        SEND_VAL                                                 '%5C%22'
         44        SEND_VAL                                                 ''
         45        SEND_VAR                                                 !3
         46        DO_ICALL                                         $18     
         47        ASSIGN                                                   !3, $18
   21    48      > FE_RESET_R                                       $20     !3, ->55
         49    > > FE_FETCH_R                                               $20, !4, ->55
   22    50    >   ROPE_INIT                                     3  ~22     'fb+user+ID%3A+'
         51        ROPE_ADD                                      1  ~22     ~22, !4
         52        ROPE_END                                      2  ~21     ~22, '%3Cbr+%2F%3E%0A'
         53        ECHO                                                     ~21
   21    54      > JMP                                                      ->49
         55    >   FE_FREE                                                  $20
   23    56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.15 ms | 1405 KiB | 21 Q