3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='https://openload.co/embed/rpexXdfbm4I/'; // function get_url_contents($url) { if (function_exists('file_get_contents')) { $result = file_get_contents($url); } if ($result == '') { $ch = curl_init(); $timeout = 30; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $r = curl_exec($ch); curl_close($ch); } return $result; } $r=$result; preg_match('/<span id="(.*?)">(.*?)<\/span>/',$r,$m); //print_r($m); if($m[2]) { $id=trim($m[2]); $urlcode = []; $first_char = ord($id[0]); $key = $first_char - 50; $maxKey = max(2, $key); $key = min($maxKey, strlen($id) - 22); $t=substr($id,$key,20); $hashMap = array(); $v = str_replace($t, "",$id); $h = 0; while($h < strlen($t)){ $f = substr($t,$h,2); $i = intval($f, 16); $hashMap[$h / 2] = $i; $h += 2; } $h = 0; while ($h < strlen($v)){ $B = substr($v,$h,3); $i = intval($B, 16); if (($h / 3) % 3 == 0) { $i = intval($B, 8);} $index = ($h / 3) % 10; $A = $hashMap[$index]; $i = $i ^ 47; $i = $i ^ $A; $urlcode[]=chr($i); $h += 3; } $link='https://openload.co/stream/'.implode('',$urlcode); echo $link; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 114
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 64
Branch analysis from position: 64
2 jumps found. (Code = 44) Position 1 = 67, Position 2 = 49
Branch analysis from position: 67
1 jumps found. (Code = 42) Position 1 = 104
Branch analysis from position: 104
2 jumps found. (Code = 44) Position 1 = 107, Position 2 = 69
Branch analysis from position: 107
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 69
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 89
Branch analysis from position: 84
2 jumps found. (Code = 44) Position 1 = 107, Position 2 = 69
Branch analysis from position: 107
Branch analysis from position: 69
Branch analysis from position: 89
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 67, Position 2 = 49
Branch analysis from position: 67
Branch analysis from position: 49
Branch analysis from position: 114
filename:       /in/m6IqX
function name:  (null)
number of ops:  115
compiled vars:  !0 = $url, !1 = $r, !2 = $result, !3 = $m, !4 = $id, !5 = $urlcode, !6 = $first_char, !7 = $key, !8 = $maxKey, !9 = $t, !10 = $hashMap, !11 = $v, !12 = $h, !13 = $f, !14 = $i, !15 = $B, !16 = $index, !17 = $A, !18 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fopenload.co%2Fembed%2FrpexXdfbm4I%2F'
   27     1        ASSIGN                                                   !1, !2
   29     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%3Cspan+id%3D%22%28.%2A%3F%29%22%3E%28.%2A%3F%29%3C%5C%2Fspan%3E%2F'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !3
          6        DO_ICALL                                                 
   31     7        FETCH_DIM_R                                      ~22     !3, 2
          8      > JMPZ                                                     ~22, ->114
   33     9    >   INIT_FCALL                                               'trim'
         10        FETCH_DIM_R                                      ~23     !3, 2
         11        SEND_VAL                                                 ~23
         12        DO_ICALL                                         $24     
         13        ASSIGN                                                   !4, $24
   34    14        ASSIGN                                                   !5, <array>
   35    15        INIT_FCALL                                               'ord'
         16        FETCH_DIM_R                                      ~27     !4, 0
         17        SEND_VAL                                                 ~27
         18        DO_ICALL                                         $28     
         19        ASSIGN                                                   !6, $28
   36    20        SUB                                              ~30     !6, 50
         21        ASSIGN                                                   !7, ~30
   37    22        INIT_FCALL                                               'max'
         23        SEND_VAL                                                 2
         24        SEND_VAR                                                 !7
         25        DO_ICALL                                         $32     
         26        ASSIGN                                                   !8, $32
   38    27        INIT_FCALL                                               'min'
         28        SEND_VAR                                                 !8
         29        STRLEN                                           ~34     !4
         30        SUB                                              ~35     ~34, 22
         31        SEND_VAL                                                 ~35
         32        DO_ICALL                                         $36     
         33        ASSIGN                                                   !7, $36
   39    34        INIT_FCALL                                               'substr'
         35        SEND_VAR                                                 !4
         36        SEND_VAR                                                 !7
         37        SEND_VAL                                                 20
         38        DO_ICALL                                         $38     
         39        ASSIGN                                                   !9, $38
   40    40        ASSIGN                                                   !10, <array>
   41    41        INIT_FCALL                                               'str_replace'
         42        SEND_VAR                                                 !9
         43        SEND_VAL                                                 ''
         44        SEND_VAR                                                 !4
         45        DO_ICALL                                         $41     
         46        ASSIGN                                                   !11, $41
   42    47        ASSIGN                                                   !12, 0
   43    48      > JMP                                                      ->64
   44    49    >   INIT_FCALL                                               'substr'
         50        SEND_VAR                                                 !9
         51        SEND_VAR                                                 !12
         52        SEND_VAL                                                 2
         53        DO_ICALL                                         $44     
         54        ASSIGN                                                   !13, $44
   45    55        INIT_FCALL                                               'intval'
         56        SEND_VAR                                                 !13
         57        SEND_VAL                                                 16
         58        DO_ICALL                                         $46     
         59        ASSIGN                                                   !14, $46
   46    60        DIV                                              ~48     !12, 2
         61        ASSIGN_DIM                                               !10, ~48
         62        OP_DATA                                                  !14
   47    63        ASSIGN_OP                                     1          !12, 2
   43    64    >   STRLEN                                           ~51     !9
         65        IS_SMALLER                                               !12, ~51
         66      > JMPNZ                                                    ~52, ->49
   49    67    >   ASSIGN                                                   !12, 0
   50    68      > JMP                                                      ->104
   51    69    >   INIT_FCALL                                               'substr'
         70        SEND_VAR                                                 !11
         71        SEND_VAR                                                 !12
         72        SEND_VAL                                                 3
         73        DO_ICALL                                         $54     
         74        ASSIGN                                                   !15, $54
   52    75        INIT_FCALL                                               'intval'
         76        SEND_VAR                                                 !15
         77        SEND_VAL                                                 16
         78        DO_ICALL                                         $56     
         79        ASSIGN                                                   !14, $56
   53    80        DIV                                              ~58     !12, 3
         81        MOD                                              ~59     ~58, 3
         82        IS_EQUAL                                                 ~59, 0
         83      > JMPZ                                                     ~60, ->89
   55    84    >   INIT_FCALL                                               'intval'
         85        SEND_VAR                                                 !15
         86        SEND_VAL                                                 8
         87        DO_ICALL                                         $61     
         88        ASSIGN                                                   !14, $61
   56    89    >   DIV                                              ~63     !12, 3
         90        MOD                                              ~64     ~63, 10
         91        ASSIGN                                                   !16, ~64
   57    92        FETCH_DIM_R                                      ~66     !10, !16
         93        ASSIGN                                                   !17, ~66
   58    94        BW_XOR                                           ~68     !14, 47
         95        ASSIGN                                                   !14, ~68
   59    96        BW_XOR                                           ~70     !14, !17
         97        ASSIGN                                                   !14, ~70
   60    98        INIT_FCALL                                               'chr'
         99        SEND_VAR                                                 !14
        100        DO_ICALL                                         $73     
        101        ASSIGN_DIM                                               !5
        102        OP_DATA                                                  $73
   62   103        ASSIGN_OP                                     1          !12, 3
   50   104    >   STRLEN                                           ~75     !11
        105        IS_SMALLER                                               !12, ~75
        106      > JMPNZ                                                    ~76, ->69
   67   107    >   INIT_FCALL                                               'implode'
        108        SEND_VAL                                                 ''
        109        SEND_VAR                                                 !5
        110        DO_ICALL                                         $77     
        111        CONCAT                                           ~78     'https%3A%2F%2Fopenload.co%2Fstream%2F', $77
        112        ASSIGN                                                   !18, ~78
   68   113        ECHO                                                     !18
   69   114    > > RETURN                                                   1

Function get_url_contents:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 58
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
Branch analysis from position: 9
filename:       /in/m6IqX
function name:  get_url_contents
number of ops:  60
compiled vars:  !0 = $url, !1 = $result, !2 = $ch, !3 = $timeout, !4 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'function_exists'
          2        SEND_VAL                                                 'file_get_contents'
          3        DO_ICALL                                         $5      
          4      > JMPZ                                                     $5, ->9
    9     5    >   INIT_FCALL                                               'file_get_contents'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
   11     9    >   IS_EQUAL                                                 !1, ''
         10      > JMPZ                                                     ~8, ->58
   13    11    >   INIT_FCALL_BY_NAME                                       'curl_init'
         12        DO_FCALL                                      0  $9      
         13        ASSIGN                                                   !2, $9
   14    14        ASSIGN                                                   !3, 30
   15    15        INIT_FCALL_BY_NAME                                       'curl_setopt'
         16        SEND_VAR_EX                                              !2
         17        FETCH_CONSTANT                                   ~12     'CURLOPT_URL'
         18        SEND_VAL_EX                                              ~12
         19        SEND_VAR_EX                                              !0
         20        DO_FCALL                                      0          
   16    21        INIT_FCALL_BY_NAME                                       'curl_setopt'
         22        SEND_VAR_EX                                              !2
         23        FETCH_CONSTANT                                   ~14     'CURLOPT_RETURNTRANSFER'
         24        SEND_VAL_EX                                              ~14
         25        SEND_VAL_EX                                              1
         26        DO_FCALL                                      0          
   17    27        INIT_FCALL_BY_NAME                                       'curl_setopt'
         28        SEND_VAR_EX                                              !2
         29        FETCH_CONSTANT                                   ~16     'CURLOPT_FOLLOWLOCATION'
         30        SEND_VAL_EX                                              ~16
         31        SEND_VAL_EX                                              1
         32        DO_FCALL                                      0          
   18    33        INIT_FCALL_BY_NAME                                       'curl_setopt'
         34        SEND_VAR_EX                                              !2
         35        FETCH_CONSTANT                                   ~18     'CURLOPT_SSL_VERIFYPEER'
         36        SEND_VAL_EX                                              ~18
         37        SEND_VAL_EX                                              0
         38        DO_FCALL                                      0          
   19    39        INIT_FCALL_BY_NAME                                       'curl_setopt'
         40        SEND_VAR_EX                                              !2
         41        FETCH_CONSTANT                                   ~20     'CURLOPT_SSL_VERIFYHOST'
         42        SEND_VAL_EX                                              ~20
         43        SEND_VAL_EX                                              0
         44        DO_FCALL                                      0          
   20    45        INIT_FCALL_BY_NAME                                       'curl_setopt'
         46        SEND_VAR_EX                                              !2
         47        FETCH_CONSTANT                                   ~22     'CURLOPT_CONNECTTIMEOUT'
         48        SEND_VAL_EX                                              ~22
         49        SEND_VAR_EX                                              !3
         50        DO_FCALL                                      0          
   21    51        INIT_FCALL_BY_NAME                                       'curl_exec'
         52        SEND_VAR_EX                                              !2
         53        DO_FCALL                                      0  $24     
         54        ASSIGN                                                   !4, $24
   22    55        INIT_FCALL_BY_NAME                                       'curl_close'
         56        SEND_VAR_EX                                              !2
         57        DO_FCALL                                      0          
   24    58    > > RETURN                                                   !1
   25    59*     > RETURN                                                   null

End of function get_url_contents

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.61 ms | 1412 KiB | 37 Q