3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_content = '[iframe scrolling="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/163969592&color=ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false" frameborder="no" height="166" width="100%"]'; echo preg_match('#[<\[]iframe [^>\]]*?(soundcloud.com|youtu|vimeo)[^>\]]*?[>\]]#i', $_content, $matches); var_dump($matches);
based on aOnQQ
Output for 4.3.0 - 7.1.0
1array(2) { [0]=> string(256) "[iframe scrolling="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/163969592&color=ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false" frameborder="no" height="166" width="100%"]" [1]=> string(14) "soundcloud.com" }