3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_url = 'http://example.com/bla/bla/bla/file.ext'; if (stripos($user_url, 'https://') === 0) { $user_url = substr($user_url, 6); } elseif (stripos($user_url, 'http://') === 0) { $user_url = substr($user_url, 5); } echo $user_url;

preferences:
35.52 ms | 402 KiB | 5 Q