3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( 'id' => 'ID', 'rating' => 'Overall rating', 'title' => 'Subject', 'description' => 'Your feedback', 'url_referrer' => 'Url Referrer', 'user_agent' => 'User Agent', 'user_host_address' => 'User Host Address', 'grp_id' => 'Grp', 'status_id' => 'Status', 'create_time' => 'Create Time', 'create_usr_id' => 'Create Usr', 'update_time' => 'Update Time', 'update_usr_id' => 'Update Usr', ); foreach ($test as $key => $value) { echo "'".$key."' => Yii::t('Feedback','".$value."'),"; echo "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
'id' => Yii::t('Feedback','ID'), 'rating' => Yii::t('Feedback','Overall rating'), 'title' => Yii::t('Feedback','Subject'), 'description' => Yii::t('Feedback','Your feedback'), 'url_referrer' => Yii::t('Feedback','Url Referrer'), 'user_agent' => Yii::t('Feedback','User Agent'), 'user_host_address' => Yii::t('Feedback','User Host Address'), 'grp_id' => Yii::t('Feedback','Grp'), 'status_id' => Yii::t('Feedback','Status'), 'create_time' => Yii::t('Feedback','Create Time'), 'create_usr_id' => Yii::t('Feedback','Create Usr'), 'update_time' => Yii::t('Feedback','Update Time'), 'update_usr_id' => Yii::t('Feedback','Update Usr'),