3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $response[0]['status2']= 'sent2'; //$response = array('status'=>'bla'); //log_message('error', var_export($response, true)); //log_message('error', var_export($response[0]["status"], true)); switch (@$response[0]["status"]) { default: case 'error': case 'rejected': case 'invalid': if (array_key_exists("reject_reason", $response)) { echo '$this->_set_error_message(\'Error\', $response["reject_reason"]);'; } else { echo '$this->_set_error_message(\'Error\', "Unknown response");'; } die('return FALSE'); break; case 'quoted': case 'scheduled': case 'sent': die('return TRUE'); break; } echo 'return nic';
Output for 4.3.0 - 7.2.0
$this->_set_error_message('Error', "Unknown response");return FALSE