3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.4.1 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Fatal error: Call to undefined function dump() in /in/st7Xb on line 5
Process exited with code 255.

preferences:
171.04 ms | 402 KiB | 244 Q