3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "(Yandex(?:(?:\\.Gazeta |Accessibility|Com|Mobile|MobileScreenShot|RenderResources|Screenshot|Sprav)?Bot|(?:AdNet|Antivirus|Blogs|Calendar|Catalog|Dialogs|Direct(?:Dyn)?|Favicons|ForDomain|ImageResizer|Images|Market|Media(?:naBot)?|Metrika|News(?:links)?|OntoDB(?:API)?|Pagechecker|Partner|RCA|SearchShop|(?:News|Site)links|Tracker|Turbo|Userproxy|Verticals|Vertis|Video(?:Parser)?|Webmaster))|YaDirectFetcher)"; preg_match_all('/Yandex(?:\\.Gazeta )?(?:[A-Z][a-z]+)*(?:Bot)?|YaDirectFetcher/', $pattern, $m); $bots = array_unique(array_filter($m[0])); sort($bots); print_r($bots); ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
155.11 ms | 1327 KiB | 15 Q