3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $credentials = "Authorization: OAuth oauth_consumer_key=g3PdEVqZnBgaecDGpQjODcSLm, oauth_nonce=3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJRg3PdEVqZnBgaecDGpQjODcSLm1444413587932, oauth_signature=FHnxlpBl9h3ckb8GQLfw+D3FCaU=, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1444413587, oauth_token=3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJR, oauth_version=1.0"; $arrayCredentials = explode(',',$credentials); dump($arrayCredentials); $needle = 'oauth_signature'; $ret = array_keys(array_filter($arrayCredentials, function($var) use ($needle){ return strpos($var, $needle) !== false; })); echo($ret);
based on 05eSX
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function dump() in /in/st7Xb:5 Stack trace: #0 {main} thrown in /in/st7Xb on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function dump() in /in/st7Xb on line 5
Process exited with code 255.