3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nomVideo = ''; $extensionVideo=''; list($nomVideo, $extensionVideo) = explode('.', parse_url('https://www.youtube.com/watch?v=YB5JIo12oaA')['path']); var_dump($nomVideo); var_dump($extensionVideo);
based on UiAhg
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Notice: Undefined offset: 1 in /in/hqjV8 on line 6 string(6) "/watch" NULL
Output for hhvm-3.15.4
Notice: Undefined index: 1 in /in/hqjV8 on line 6 string(6) "/watch" NULL