3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $agent = 'bot'; 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 dprBm
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
0
Output for hhvm-3.10.0

Process exited with code 153.