3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $user_agent = $_SERVER['HTTP_USER_AGENT']; //user browser $ip_address = $_SERVER["REMOTE_ADDR"]; // user ip adderss $page_name = $_SERVER["SCRIPT_NAME"]; // page the user looking $query_string = $_SERVER["QUERY_STRING"]; // what query he used $current_page = $page_name."?".$query_string; ?>
Output for 5.3.0 - 7.2.0
Notice: Undefined index: HTTP_USER_AGENT in /in/4lK5g on line 2 Notice: Undefined index: REMOTE_ADDR in /in/4lK5g on line 3 Notice: Undefined index: QUERY_STRING in /in/4lK5g on line 5
Output for 5.2.3 - 5.2.17
Notice: Undefined index: HTTP_USER_AGENT in /in/4lK5g on line 2 Notice: Undefined index: REMOTE_ADDR in /in/4lK5g on line 3 Notice: Undefined index: QUERY_STRING in /in/4lK5g on line 5
Output for 4.3.0 - 5.2.2
Notice: Undefined index: HTTP_USER_AGENT in /in/4lK5g on line 2 Notice: Undefined index: REMOTE_ADDR in /in/4lK5g on line 3 Notice: Undefined index: SCRIPT_NAME in /in/4lK5g on line 4 Notice: Undefined index: QUERY_STRING in /in/4lK5g on line 5