3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'tehdgsd f fs fsddf sdf http://mail.ru?dsdfll fdsfsd'; if( ($pos = stripos($text, 'http://')) || ($pos = stripos($text, 'https://')) ) { echo $pos; echo substr($text, $pos); }

preferences:
52.28 ms | 402 KiB | 5 Q