3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_GET['src'] = 'http://www.my.com/api.php%3Fkey1=xxx&key2=xxx'; $src = parse_url($_GET['src']); parse_str($src['query']); echo $key1,$key2;
Output for 7.2.0
Notice: Undefined index: query in /in/gtqku on line 5 Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/gtqku on line 5 Notice: Undefined variable: key1 in /in/gtqku on line 6 Notice: Undefined variable: key2 in /in/gtqku on line 6
Output for 5.3.0 - 7.1.10
Notice: Undefined index: query in /in/gtqku on line 5 Notice: Undefined variable: key1 in /in/gtqku on line 6 Notice: Undefined variable: key2 in /in/gtqku on line 6
Output for 5.0.4 - 5.2.17
Notice: Undefined index: query in /in/gtqku on line 5 Notice: Undefined variable: key1 in /in/gtqku on line 6 Notice: Undefined variable: key2 in /in/gtqku on line 6
Output for 4.3.0 - 5.0.3
Notice: Undefined index: query in /in/gtqku on line 5 Notice: Undefined variable: key1 in /in/gtqku on line 6 Notice: Undefined variable: key2 in /in/gtqku on line 6