3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $src = '//player.vimeo.com/video/36899035'; preg_match('#vimeo\.com(?:\w*\/)*(\d{6,10})#i',$src,$output); var_dump($output);
based on DGb6d
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(24) "vimeo.com/video/36899035" [1]=> string(8) "36899035" }