3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $elapsed_time = 324; $errorThrown = "Internal Server Error"; $errors = array( "No user" => "No user, you can ignore this error message", "Request-URI Too Long" => "User was logged out but still submitted 'Get Report', you can ignore this error message", "Internal Server Error" => "Elapsed time of run: ".$elapsed_time."\nIf elapsed time is over 300 seconds then too many results were generated.\nCheck to see if the user didn't enter enough parameters, if so ignore this error message." ); echo $errors[$errorThrown]; echo array_key_exists("No User"); echo array_key_exists("No user");
based on ml8jH
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.1.0 - 7.3.0beta1
Elapsed time of run: 324 If elapsed time is over 300 seconds then too many results were generated. Check to see if the user didn't enter enough parameters, if so ignore this error message. Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/KqofV on line 13 Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/KqofV on line 14
Output for hhvm-3.22.0
Elapsed time of run: 324 If elapsed time is over 300 seconds then too many results were generated. Check to see if the user didn't enter enough parameters, if so ignore this error message. Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/KqofV on line -1 Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/KqofV on line -1