3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = parse_url('http://pdl.vimeocdn.com/18325/235/286738602.mp4?token2=1410918962_54fefc92ea1867b1fbfa1a2f2b4a8c20&aksessionid=7fce8f586eab08ab'); var_dump(pathinfo($url['path'], PATHINFO_EXTENSION));
based on LjGkk
Output for 4.3.2 - 7.1.0
string(3) "mp4"
Output for 4.3.0 - 4.3.1

Process exited with code 139.