3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $language_array = array("en", "de", "fr"); $language = isset($_GET['language']) ? $_GET['language'] : null; if in_array($language, $language_array) && { $language = ''; } else { $language = 'en'; } include 'inc/header.php'; $page = isset($_GET['page']) ? $_GET['page'] : null; if (!include 'pages' . $page . '.php') { header("HTTP/1.1 404 Not Found"); echo '404'; } include 'inc/footer.php'; ?>
Output for 5.4.0 - 5.5.8
Parse error: syntax error, unexpected 'in_array' (T_STRING), expecting '(' in /in/L8A5g on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting '(' in /in/L8A5g on line 6
Process exited with code 255.