3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php parse_str(parse_url($_SERVER['HTTP_REFERER'], "ph"), $queries); echo $queries['ph'];
based on 2pW0q
Output for 7.0.0 - 7.2.0
Notice: Undefined index: HTTP_REFERER in /in/DOkDj on line 2 Warning: parse_url() expects parameter 2 to be integer, string given in /in/DOkDj on line 2 Notice: Undefined index: ph in /in/DOkDj on line 3
Output for 5.3.0 - 5.6.28
Notice: Undefined index: HTTP_REFERER in /in/DOkDj on line 2 Warning: parse_url() expects parameter 2 to be long, string given in /in/DOkDj on line 2 Notice: Undefined index: ph in /in/DOkDj on line 3
Output for 5.1.2 - 5.2.17
Notice: Undefined index: HTTP_REFERER in /in/DOkDj on line 2 Warning: parse_url() expects parameter 2 to be long, string given in /in/DOkDj on line 2 Notice: Undefined index: ph in /in/DOkDj on line 3
Output for 4.3.0 - 5.1.1
Notice: Undefined index: HTTP_REFERER in /in/DOkDj on line 2 Warning: parse_url() expects exactly 1 parameter, 2 given in /in/DOkDj on line 2 Notice: Undefined index: ph in /in/DOkDj on line 3