3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = http://www.youtube.com/watch?v=k9rY1dVRU1I; preg_match("/^(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'>]+)/", $url, $matches); print_r($matches);
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected ':' in /in/Yrc88 on line 2
Process exited with code 255.