3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* - Tác giả: Jkey C Phong - Mong các bạn giữ nguyên phần header này! */ Class Anime47 { Private Static Function __Curl($Url) { preg_match('/http(?:s)?:\/\/(?:[\w-]+\.)*([\w-]{1,63})(?:\.(?:\w{3}|\w{2}))(?:$|\/)/i', $Url, $Match); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $Url); $Headers = array(); $Headers[] = 'Host: ' . str_replace(array('http:','/'),array('',''),$Match[0]); $Headers[] = 'User-Agent: Mozilla/5.0 (Linux; U; Android 2.2.1; en-ca; LG-P505R Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'; $Headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'; $Headers[] = 'Accept-Language: vi-VN,vi;q=0.8,en-US;q=0.5,en;q=0.3'; $Headers[] = 'Accept-Encoding: gzip, deflate'; $Headers[] = 'DNT: 1'; $Headers[] = 'Cookie: location.href=1; __utma=157483882.1058692669.1446731289.1446731289.1446731289.1; __utmb=157483882.6.10.1446731289; __utmc=157483882; __utmz=157483882.1446731289.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); sinhvienit_popup_ads=true; 5245=5245; __uif=__uid%3A4946267770985296604%7C__ui%3A-1%7C__create%3A1446267770; __cfduid=ddee2b28255737bd950215e046e5f3a7f1446731328; __RC=5; __R=3; __tb=0; __UF=-1; __IP=985296549; __utmt=1'; $Headers[] = 'Cache-Control: max-age=0'; $Headers[] = 'Origin: http://anime47.com'; $Headers[] = 'Referer: ' . $Url; $Headers[] = 'Connection: keep-alive'; curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate'); curl_setopt($ch, CURLOPT_HTTPHEADER, $Headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_TIMEOUT, 400); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $Data = curl_exec($ch); if(!$Data){ die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch)); } $HttpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return $Data; return ($HttpCode>=200 && $HttpCode<300) ? $Data : 'Lỗi trong quá trình lấy dữ liệu'; } Public Function __TVN($Url) { $Source = Anime47::__Curl($Url); preg_match('#http://dll.anime47.com/dien_thoai.php\?url=(.*?).lcq#', $Source, $Match); $DllLink = 'http://dll.anime47.com/dien_thoai.php?url=' . $Match[1]; $DllGet = Anime47::__Curl($DllLink); if (strpos($DllGet, 'lh3.googleusercontent.com')) { preg_match_all('#https://lh3.googleusercontent.com/(.*?)=m([0-9]+)#', $DllGet, $Match_1); for ($i=0; $i < count($Match_1[0]); $i++) { $Link[$i] = $Match_1[0][$i]; } return $Link; } else { return $DllGet; } } } /* ====================================================================================================== */ if (isset($_GET['url'])) { $Object = new Anime47(); $GetLink = $Object->__TVN($_GET['url']); if (is_array($GetLink)) { for ($i=0; $i < count($GetLink); $i++) { Echo $GetLink[$i] . '<br />'; } } else { echo $GetLink; } } else { header('Location: https://www.facebook.com/groups/826847377350704/'); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 27
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 17
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 17
Branch analysis from position: 24
Branch analysis from position: 17
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2i2n5
function name:  (null)
number of ops:  31
compiled vars:  !0 = $Object, !1 = $GetLink, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   67     0  E >   FETCH_IS                                         ~3      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~3, 'url'
          2      > JMPZ                                                     ~4, ->27
   68     3    >   NEW                                              $5      'Anime47'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $5
   69     6        INIT_METHOD_CALL                                         !0, '__TVN'
          7        CHECK_FUNC_ARG                                           
          8        FETCH_FUNC_ARG               global              $8      '_GET'
          9        FETCH_DIM_FUNC_ARG                               $9      $8, 'url'
         10        SEND_FUNC_ARG                                            $9
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !1, $10
   70    13        TYPE_CHECK                                  128          !1
         14      > JMPZ                                                     ~12, ->25
   71    15    >   ASSIGN                                                   !2, 0
         16      > JMP                                                      ->21
   72    17    >   FETCH_DIM_R                                      ~14     !1, !2
         18        CONCAT                                           ~15     ~14, '%3Cbr+%2F%3E'
         19        ECHO                                                     ~15
   71    20        PRE_INC                                                  !2
         21    >   COUNT                                            ~17     !1
         22        IS_SMALLER                                               !2, ~17
         23      > JMPNZ                                                    ~18, ->17
   70    24    > > JMP                                                      ->26
   77    25    >   ECHO                                                     !1
   67    26    > > JMP                                                      ->30
   81    27    >   INIT_FCALL                                               'header'
         28        SEND_VAL                                                 'Location%3A+https%3A%2F%2Fwww.facebook.com%2Fgroups%2F826847377350704%2F'
         29        DO_ICALL                                                 
   83    30    > > RETURN                                                   1

Class Anime47:
Function __curl:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 113, Position 2 = 123
Branch analysis from position: 113
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 123
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2i2n5
function name:  __Curl
number of ops:  143
compiled vars:  !0 = $Url, !1 = $Match, !2 = $ch, !3 = $Headers, !4 = $Data, !5 = $HttpCode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fhttp%28%3F%3As%29%3F%3A%5C%2F%5C%2F%28%3F%3A%5B%5Cw-%5D%2B%5C.%29%2A%28%5B%5Cw-%5D%7B1%2C63%7D%29%28%3F%3A%5C.%28%3F%3A%5Cw%7B3%7D%7C%5Cw%7B2%7D%29%29%28%3F%3A%24%7C%5C%2F%29%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   12     6        INIT_FCALL_BY_NAME                                       'curl_init'
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
   13     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !2
         11        FETCH_CONSTANT                                   ~9      'CURLOPT_URL'
         12        SEND_VAL_EX                                              ~9
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
   14    15        ASSIGN                                                   !3, <array>
   15    16        INIT_FCALL                                               'str_replace'
         17        SEND_VAL                                                 <array>
         18        SEND_VAL                                                 <array>
         19        FETCH_DIM_R                                      ~13     !1, 0
         20        SEND_VAL                                                 ~13
         21        DO_ICALL                                         $14     
         22        CONCAT                                           ~15     'Host%3A+', $14
         23        ASSIGN_DIM                                               !3
         24        OP_DATA                                                  ~15
   16    25        ASSIGN_DIM                                               !3
         26        OP_DATA                                                  'User-Agent%3A+Mozilla%2F5.0+%28Linux%3B+U%3B+Android+2.2.1%3B+en-ca%3B+LG-P505R+Build%2FFRG83%29+AppleWebKit%2F533.1+%28KHTML%2C+like+Gecko%29+Version%2F4.0+Mobile+Safari%2F533.1'
   17    27        ASSIGN_DIM                                               !3
         28        OP_DATA                                                  'Accept%3A+text%2Fhtml%2Capplication%2Fxhtml%2Bxml%2Capplication%2Fxml%3Bq%3D0.9%2C%2A%2F%2A%3Bq%3D0.8'
   18    29        ASSIGN_DIM                                               !3
         30        OP_DATA                                                  'Accept-Language%3A+vi-VN%2Cvi%3Bq%3D0.8%2Cen-US%3Bq%3D0.5%2Cen%3Bq%3D0.3'
   19    31        ASSIGN_DIM                                               !3
         32        OP_DATA                                                  'Accept-Encoding%3A+gzip%2C+deflate'
   20    33        ASSIGN_DIM                                               !3
         34        OP_DATA                                                  'DNT%3A+1'
   21    35        ASSIGN_DIM                                               !3
         36        OP_DATA                                                  'Cookie%3A+location.href%3D1%3B+__utma%3D157483882.1058692669.1446731289.1446731289.1446731289.1%3B+__utmb%3D157483882.6.10.1446731289%3B+__utmc%3D157483882%3B+__utmz%3D157483882.1446731289.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29%3B+sinhvienit_popup_ads%3Dtrue%3B+5245%3D5245%3B+__uif%3D__uid%253A4946267770985296604%257C__ui%253A-1%257C__create%253A1446267770%3B+__cfduid%3Dddee2b28255737bd950215e046e5f3a7f1446731328%3B+__RC%3D5%3B+__R%3D3%3B+__tb%3D0%3B+__UF%3D-1%3B+__IP%3D985296549%3B+__utmt%3D1'
   22    37        ASSIGN_DIM                                               !3
         38        OP_DATA                                                  'Cache-Control%3A+max-age%3D0'
   23    39        ASSIGN_DIM                                               !3
         40        OP_DATA                                                  'Origin%3A+http%3A%2F%2Fanime47.com'
   24    41        CONCAT                                           ~25     'Referer%3A+', !0
         42        ASSIGN_DIM                                               !3
         43        OP_DATA                                                  ~25
   25    44        ASSIGN_DIM                                               !3
         45        OP_DATA                                                  'Connection%3A+keep-alive'
   26    46        INIT_FCALL_BY_NAME                                       'curl_setopt'
         47        SEND_VAR_EX                                              !2
         48        FETCH_CONSTANT                                   ~27     'CURLOPT_IPRESOLVE'
         49        SEND_VAL_EX                                              ~27
         50        FETCH_CONSTANT                                   ~28     'CURL_IPRESOLVE_V4'
         51        SEND_VAL_EX                                              ~28
         52        DO_FCALL                                      0          
   27    53        INIT_FCALL_BY_NAME                                       'curl_setopt'
         54        SEND_VAR_EX                                              !2
         55        FETCH_CONSTANT                                   ~30     'CURLOPT_ENCODING'
         56        SEND_VAL_EX                                              ~30
         57        SEND_VAL_EX                                              'gzip%2C+deflate'
         58        DO_FCALL                                      0          
   28    59        INIT_FCALL_BY_NAME                                       'curl_setopt'
         60        SEND_VAR_EX                                              !2
         61        FETCH_CONSTANT                                   ~32     'CURLOPT_HTTPHEADER'
         62        SEND_VAL_EX                                              ~32
         63        SEND_VAR_EX                                              !3
         64        DO_FCALL                                      0          
   29    65        INIT_FCALL_BY_NAME                                       'curl_setopt'
         66        SEND_VAR_EX                                              !2
         67        FETCH_CONSTANT                                   ~34     'CURLOPT_RETURNTRANSFER'
         68        SEND_VAL_EX                                              ~34
         69        SEND_VAL_EX                                              1
         70        DO_FCALL                                      0          
   30    71        INIT_FCALL_BY_NAME                                       'curl_setopt'
         72        SEND_VAR_EX                                              !2
         73        FETCH_CONSTANT                                   ~36     'CURLOPT_SSL_VERIFYHOST'
         74        SEND_VAL_EX                                              ~36
         75        SEND_VAL_EX                                              <false>
         76        DO_FCALL                                      0          
   31    77        INIT_FCALL_BY_NAME                                       'curl_setopt'
         78        SEND_VAR_EX                                              !2
         79        FETCH_CONSTANT                                   ~38     'CURLOPT_SSL_VERIFYPEER'
         80        SEND_VAL_EX                                              ~38
         81        SEND_VAL_EX                                              <false>
         82        DO_FCALL                                      0          
   32    83        INIT_FCALL_BY_NAME                                       'curl_setopt'
         84        SEND_VAR_EX                                              !2
         85        FETCH_CONSTANT                                   ~40     'CURLINFO_HEADER_OUT'
         86        SEND_VAL_EX                                              ~40
         87        SEND_VAL_EX                                              <true>
         88        DO_FCALL                                      0          
   33    89        INIT_FCALL_BY_NAME                                       'curl_setopt'
         90        SEND_VAR_EX                                              !2
         91        FETCH_CONSTANT                                   ~42     'CURLOPT_TIMEOUT'
         92        SEND_VAL_EX                                              ~42
         93        SEND_VAL_EX                                              400
         94        DO_FCALL                                      0          
   34    95        INIT_FCALL_BY_NAME                                       'curl_setopt'
         96        SEND_VAR_EX                                              !2
         97        FETCH_CONSTANT                                   ~44     'CURLOPT_CONNECTTIMEOUT'
         98        SEND_VAL_EX                                              ~44
         99        SEND_VAL_EX                                              0
        100        DO_FCALL                                      0          
   35   101        INIT_FCALL_BY_NAME                                       'curl_setopt'
        102        SEND_VAR_EX                                              !2
        103        FETCH_CONSTANT                                   ~46     'CURLOPT_FOLLOWLOCATION'
        104        SEND_VAL_EX                                              ~46
        105        SEND_VAL_EX                                              1
        106        DO_FCALL                                      0          
   36   107        INIT_FCALL_BY_NAME                                       'curl_exec'
        108        SEND_VAR_EX                                              !2
        109        DO_FCALL                                      0  $48     
        110        ASSIGN                                                   !4, $48
   37   111        BOOL_NOT                                         ~50     !4
        112      > JMPZ                                                     ~50, ->123
   38   113    >   INIT_FCALL_BY_NAME                                       'curl_error'
        114        SEND_VAR_EX                                              !2
        115        DO_FCALL                                      0  $51     
        116        CONCAT                                           ~52     'Error%3A+%22', $51
        117        CONCAT                                           ~53     ~52, '%22+-+Code%3A+'
        118        INIT_FCALL_BY_NAME                                       'curl_errno'
        119        SEND_VAR_EX                                              !2
        120        DO_FCALL                                      0  $54     
        121        CONCAT                                           ~55     ~53, $54
        122      > EXIT                                                     ~55
   40   123    >   INIT_FCALL_BY_NAME                                       'curl_getinfo'
        124        SEND_VAR_EX                                              !2
        125        FETCH_CONSTANT                                   ~56     'CURLINFO_HTTP_CODE'
        126        SEND_VAL_EX                                              ~56
        127        DO_FCALL                                      0  $57     
        128        ASSIGN                                                   !5, $57
   41   129        INIT_FCALL_BY_NAME                                       'curl_close'
        130        SEND_VAR_EX                                              !2
        131        DO_FCALL                                      0          
   42   132      > RETURN                                                   !4
   43   133*       IS_SMALLER_OR_EQUAL                              ~60     200, !5
        134*       JMPZ_EX                                          ~60     ~60, ->137
        135*       IS_SMALLER                                       ~61     !5, 300
        136*       BOOL                                             ~60     ~61
        137*       JMPZ                                                     ~60, ->140
        138*       QM_ASSIGN                                        ~62     !4
        139*       JMP                                                      ->141
        140*       QM_ASSIGN                                        ~62     'L%E1%BB%97i+trong+qu%C3%A1+tr%C3%ACnh+l%E1%BA%A5y+d%E1%BB%AF+li%E1%BB%87u'
        141*       RETURN                                                   ~62
   44   142*     > RETURN                                                   null

End of function __curl

Function __tvn:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 40
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 29
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 29
Branch analysis from position: 38
Branch analysis from position: 29
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2i2n5
function name:  __TVN
number of ops:  42
compiled vars:  !0 = $Url, !1 = $Source, !2 = $Match, !3 = $DllLink, !4 = $DllGet, !5 = $Match_1, !6 = $i, !7 = $Link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   RECV                                             !0      
   48     1        INIT_STATIC_METHOD_CALL                                  'Anime47', '__Curl'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $8      
          4        ASSIGN                                                   !1, $8
   49     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%23http%3A%2F%2Fdll.anime47.com%2Fdien_thoai.php%5C%3Furl%3D%28.%2A%3F%29.lcq%23'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
   50    10        FETCH_DIM_R                                      ~11     !2, 1
         11        CONCAT                                           ~12     'http%3A%2F%2Fdll.anime47.com%2Fdien_thoai.php%3Furl%3D', ~11
         12        ASSIGN                                                   !3, ~12
   51    13        INIT_STATIC_METHOD_CALL                                  'Anime47', '__Curl'
         14        SEND_VAR                                                 !3
         15        DO_FCALL                                      0  $14     
         16        ASSIGN                                                   !4, $14
   52    17        INIT_FCALL                                               'strpos'
         18        SEND_VAR                                                 !4
         19        SEND_VAL                                                 'lh3.googleusercontent.com'
         20        DO_ICALL                                         $16     
         21      > JMPZ                                                     $16, ->40
   53    22    >   INIT_FCALL                                               'preg_match_all'
         23        SEND_VAL                                                 '%23https%3A%2F%2Flh3.googleusercontent.com%2F%28.%2A%3F%29%3Dm%28%5B0-9%5D%2B%29%23'
         24        SEND_VAR                                                 !4
         25        SEND_REF                                                 !5
         26        DO_ICALL                                                 
   54    27        ASSIGN                                                   !6, 0
         28      > JMP                                                      ->34
   55    29    >   FETCH_DIM_R                                      ~20     !5, 0
         30        FETCH_DIM_R                                      ~21     ~20, !6
         31        ASSIGN_DIM                                               !7, !6
         32        OP_DATA                                                  ~21
   54    33        PRE_INC                                                  !6
         34    >   FETCH_DIM_R                                      ~23     !5, 0
         35        COUNT                                            ~24     ~23
         36        IS_SMALLER                                               !6, ~24
         37      > JMPNZ                                                    ~25, ->29
   57    38    > > RETURN                                                   !7
   52    39*       JMP                                                      ->41
   60    40    > > RETURN                                                   !4
   62    41*     > RETURN                                                   null

End of function __tvn

End of class Anime47.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.65 ms | 1458 KiB | 18 Q