3v4l.org

run code in 150+ 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)#',$agent)) echo 1; else echo 0;
based on 9CSRa
Output for 4.3.0 - 7.1.0
0