3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $old_url = 'http://cdn2.occuworld.org/style.css'; preg_match('/^(http(s)?:\/\/|ftp:\/\/)/i', $old_url,$matches); var_dump($matches);
based on 7bUvj
Output for 4.3.0 - 7.2.0
array(2) { [0]=> string(7) "http://" [1]=> string(7) "http://" }