3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = preg_match('#http://www.youtube.com/embed/(.*)\?rel=0#','http://www.youtube.com/embed/vJlds4WMZtM?rel=0', $matches); var_dump($matches);
Output for 4.3.0 - 7.1.0
array(2) { [0]=> string(46) "http://www.youtube.com/embed/vJlds4WMZtM?rel=0" [1]=> string(11) "vJlds4WMZtM" }