3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "http://www.youtube.com/watch?v=C4kxS1ksqtw&feature=relate"; parse_str( parse_url( $url, PHP_URL_QUERY ), $my_array_of_vars ); if(isset($my_array_of_vars['v']))echo $my_array_of_vars['v']; // Output: C4kxS1ksqtw ?>
based on GWnRG
Output for 5.6.0 - 7.2.0
C4kxS1ksqtw