3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php blogPostWord = 'http://youtu.be/O7Lm3BMG8ow'; preg_match('(?<=(?:v|i)=)[a-zA-Z0-9-]+(?=&)|(?<=(?:v|i)\/)[^&\n]+|(?<=embed\/)[^"&\n]+|(?<=‌​(?:v|i)=)[^&\n]+|(?<=youtu.be\/)[^&\n]+', $blogPostWord, $matches); var_dump($matches);
Output for 5.3.0 - 5.4.14
Parse error: syntax error, unexpected '=' in /in/oVXKs on line 2
Process exited with code 255.