3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isAb = false; $t = array(); if(isset($t['HTTP_USER_AGENT'])){ $sessionLessUseragents = array( 'ApacheBench', 'http://www.majestic12.co.uk/bot.php', 'http://www.google.com/bot.html', 'http://yandex.com/bots', 'http://www.bing.com/bingbot.htm', 'http://search.msn.com/msnbot.htm', 'http://ahrefs.com/robot/', 'http://www.baidu.com/search/spider.html', 'http://www.projectwonderful.com/', 'http://webmeup-crawler.com/', 'http://OpenLinkProfiler.org/bot', 'http://www.pingdom.com', 'http://www.opensiteexplorer.org/dotbot', 'http://www.easou.com/search/spider.html', ); foreach($sessionLessUseragents as $sessionLessUseragent){ if(strrpos($t['HTTP_USER_AGENT'], $sessionLessUseragent) !== false){ $isAb = true; break; } } }
Output for git.master, git.master_jit, rfc.property-hooks

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.81 ms | 401 KiB | 8 Q