perrasham - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of perrasham.php

  1. <?php $links = <<<LINKS
  2. -------------------------------------------
  3. https://www.fembed.com/v/k70e6h3-gxr312l
  4. https://mega.nz/#!YMdynahD!lFb9paCCvZvHqco0-0P9QHsoGGjDCUozYTYoswi9G8U
  5. https://gounlimited.to/02awtk64usy4/John.wick.chapter.2.2017.1080p-dual-lat.mp4
  6. https://waaw.tv/watch_video.php?v=UJHSKcp1tguc
  7. http://ok.ru/video/1589240203946
  8. https://rapidvid.to/v/G6AJX57KST
  9. https://streamango.com/f/kqbeodcsfcpenank/John_wick_chapter_2_2017_1080p-dual-lat_mp4
  10. https://verystream.com/stream/jHWgpSsTREe/John.wick.chapter.2.2017.1080p-dual-lat.mp4
  11. https://vidcloud.co/v/5d60a4efe8387/John.wick.chapter.2.2017.1080p-dual-lat.mp4
  12. ------------------------------------------
  13. LINKS;
  14.  
  15. ###### NO TOCAR 
  16. $patterns = [
  17.     '/https?:\/\/(?:www\.)?fembed\.com\/f\//' => 'https://www.fembed.com/v/',
  18.     '/https?:\/\/mega\.(?:nz|co.nz)\/\#/' => 'https://mega.nz/embed#',
  19.     '/https?:\/\/gounlimited\.to\/([\w-]{12})\S*/' => 'https://gounlimited.to/embed-$1.html',
  20.     '/https?:\/\/waaw\.tv\/watch_video\.php\?v=([\w-]{12})\S*/' => 'https://waaw.tv/watch_video.php?v=UJHSKcp1tguc',
  21.     '/https?:\/\/ok\.ru\/video\/(\d+)\S*/' => 'http://ok.ru/videoembed/$1',
  22.     '/https?:\/\/rapidvid\.to\/v\/([A-Z0-9]+)\S*/' => 'https://rapidvid.to/e/$1',
  23.     '/https?:\/\/(?:www\.)?streamango\.com\/f\//' => 'https://streamango.com/embed/',
  24.     '/https?:\/\/(?:www\.)?verystream\.com\/stream\//' => 'https://verystream.com/e/',
  25.     '/https?:\/\/(?:www\.)?vidcloud\.co\/v\//' => 'https://vidcloud.co/embed/',
  26. ];
  27. echo preg_replace(array_keys($patterns), $patterns, $links);
File Description
  • perrasham
  • PHP Code
  • 25 Aug-2019
  • 1.5 Kb
You can Share it: