3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'https://mysite.com/test/1234?basic=2&email=xyz2@test.com'; $parts = parse_url($url); parse_str($parts['query'], $query); echo $query['email']; ?>
based on kuLmD
Output for 4.3.0 - 7.1.0
xyz2@test.com