3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $video_url = 'http://google.com'; $needles = array('http://', 'https://'); // Normalise the URLs foreach ($needles as $needle) { var_dump(strpos($video_url, $needle)); } echo $video_url;
based on McEfD
Output for 4.3.0 - 7.1.0
int(0) bool(false) http://google.com