3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "<content type='application/x-shockwave-flash' src='https://www.youtube.com/v/f4LxBKN9ank?version=3&amp;f=videos&amp;app=youtube_gdata'/>"; preg_match('#\www\.youtube\.com\/v\/([\w]+)#', $string, $match); $id = $match[1]; echo $id;
Output for 4.3.0 - 7.1.0
f4LxBKN9ank