3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $transactionId = "Sok234141341"; $gaClientId = "41233412.31231"; $redisData = "testsrsar"; #$redisData = json_encode([ # 'transactionId' => $transactionId, # 'gaClientId' => $gaClientId # ]); $data = json_decode($redisData); if (json_last_error() !== JSON_ERROR_NONE) { var_dump($redisData); } else { var_dump($data->transactionId); }
based on 4uCrD
Output for 5.3.19 - 7.2.0
string(9) "testsrsar"