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)#i',$agent)) echo 1; else echo 0;
based on TgIKB
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1
Output for hhvm-3.10.0

Process exited with code 153.