3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filter = array( "grant_type" => array("filter" => FILTER_VALIDATE_REGEXP, "options" => array("regexp" => COAuthConstants::GRANT_TYPE_REGEXP), "flags" => FILTER_REQUIRE_SCALAR), "scope" => array("flags" => FILTER_REQUIRE_SCALAR), "code" => array("flags" => FILTER_REQUIRE_SCALAR), "redirect_uri" => array("filter" => FILTER_SANITIZE_URL), "username" => array("flags" => FILTER_REQUIRE_SCALAR), "password" => array("flags" => FILTER_REQUIRE_SCALAR), "assertion_type" => array("flags" => FILTER_REQUIRE_SCALAR), "assertion" => array("flags" => FILTER_REQUIRE_SCALAR), "refresh_token" => array("flags" => FILTER_REQUIRE_SCALAR), "user_id" => array("filter" => FILTER_VALIDATE_INT), ); $arResult = filter_input_array(INPUT_GET, $filter); var_dump($arResult);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'COAuthConstants' not found in /in/3Blab:3 Stack trace: #0 {main} thrown in /in/3Blab on line 3
Process exited with code 255.
Output for hhvm-3.12.0 - 3.13.2
Fatal error: Uncaught Error: Class undefined: COAuthConstants in /in/3Blab:3 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: Class undefined: COAuthConstants in /in/3Blab on line 3
Process exited with code 255.
Output for 5.2.0 - 5.6.28
Fatal error: Class 'COAuthConstants' not found in /in/3Blab on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Notice: Use of undefined constant FILTER_VALIDATE_REGEXP - assumed 'FILTER_VALIDATE_REGEXP' in /in/3Blab on line 3 Fatal error: Class 'COAuthConstants' not found in /in/3Blab on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/3Blab on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/3Blab on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/3Blab on line 3
Process exited with code 255.