3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.04 ms | 1404 KiB | 35 Q