3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function IsExernal($link) { $base_url = sprintf("%s://%s%s", isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http', $_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI'] ); return (substr($link,0,strlen($base_url)-1)==$base_url); } echo IsExternal("http://www.google.com");
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function IsExternal() in /in/ESTRq:16 Stack trace: #0 {main} thrown in /in/ESTRq on line 16
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function IsExternal() in /in/ESTRq on line 16
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: isexternal() in /in/ESTRq on line 16
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: isexternal() in /in/ESTRq on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: isexternal() in /in/ESTRq on line 16