3v4l.org

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