3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $params = array( 'language' => $_GET['language'], 'shop_id' => $_GET['shop_id'], 'timestamp' => $_GET['timestamp'], 'token' => $_GET['token'] // in between token ); ksort($params); $signature = ''; foreach ($params as $key => $value) { $signature .= $key.'='.$value; } $signature = md5($signature.APP_SECRET);
Output for 7.2.0
Notice: Undefined index: language in /in/nssoa on line 4 Notice: Undefined index: shop_id in /in/nssoa on line 5 Notice: Undefined index: timestamp in /in/nssoa on line 6 Notice: Undefined index: token in /in/nssoa on line 7 Warning: Use of undefined constant APP_SECRET - assumed 'APP_SECRET' (this will throw an Error in a future version of PHP) in /in/nssoa on line 19
Output for 5.3.19 - 7.1.10
Notice: Undefined index: language in /in/nssoa on line 4 Notice: Undefined index: shop_id in /in/nssoa on line 5 Notice: Undefined index: timestamp in /in/nssoa on line 6 Notice: Undefined index: token in /in/nssoa on line 7 Notice: Use of undefined constant APP_SECRET - assumed 'APP_SECRET' in /in/nssoa on line 19