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%"]'; if(preg_match('#[<\[](iframe [^>\]]*?(soundcloud.com|youtu|vimeo)[^>\]]*?)[>\]]#i', $_content, $matches) > 0) var_dump($matches);
based on h7qCu
Output for 4.3.0 - 7.1.0
array(3) { [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(254) "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%"" [2]=> string(14) "soundcloud.com" }