3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $agent = 'Dotbot'; if ($agent=='' || preg_match('#(MEGAUPLOAD|Feedfetcher|YisouSpider|HTTrack|HTTPClient|SurveyBot|Anonymous|similarpages|webcollage|MJ12bot|WebCopier|Teleport|ISpider|Wget|Offline|WebSnake|Download|Ezooms|Exabot|Gigabot|DotBot|psbot)#i',$agent)) echo 1; else echo 0;
based on TgIKB
Output for 4.3.0 - 7.2.0
1