3v4l.org

run code in 200+ 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.7
array(2) { [0]=> string(46) "http://www.youtube.com/embed/vJlds4WMZtM?rel=0" [1]=> string(12) "vJlds4WMZtM?" }