3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sites = array('naughtyappetite.com',); $url = "https://m.naughtyappetite.com/oth.php?dynamicpage=all_1cm_universal_light_n&ver=1"; $url = parse_url($url, PHP_URL_HOST); if (!empty($url)) { $url = preg_replace('/^(www\.|m\.)/i', '', $url); } if (!empty($url) && in_array($url, $sites)) { die(var_dump($url, true)); } else { die(var_dump($url, false)); }
Output for git.master, git.master_jit, rfc.property-hooks
string(19) "naughtyappetite.com" bool(true)

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:
61.4 ms | 401 KiB | 8 Q