3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.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 hhvm-3.12.0
Notice: Undefined index: HTTP_USER_AGENT in /in/4lK5g on line -1 Notice: Undefined index: REMOTE_ADDR in /in/4lK5g on line -1 Notice: Undefined index: QUERY_STRING in /in/4lK5g on line -1
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