3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array( 'id' => 'ID', 'idea_id' => 'Idea', 'rating' => 'Rating', 'old_topic_id' => 'Old Topic', 'old_registration_id' => 'Old Registration', 'decline_reason_id'=>'Reason to deceline', 'sort_order' => 'Sort Order', 'modified_flag' => 'Modified Flag', 'status_id' => 'Status', 'create_time' => 'Create Time', 'create_usr_id' => 'Create Usr', 'update_time' => 'Update Time', 'update_usr_id' => 'Update Usr', 'usr_id' => 'Usr', ); foreach ($test as $key => $value) { echo "'".$key."' => Yii::t('IdeaRtg','".$value."'),"; echo "\n"; }
Output for 4.3.0 - 7.2.0
'id' => Yii::t('IdeaRtg','ID'), 'idea_id' => Yii::t('IdeaRtg','Idea'), 'rating' => Yii::t('IdeaRtg','Rating'), 'old_topic_id' => Yii::t('IdeaRtg','Old Topic'), 'old_registration_id' => Yii::t('IdeaRtg','Old Registration'), 'decline_reason_id' => Yii::t('IdeaRtg','Reason to deceline'), 'sort_order' => Yii::t('IdeaRtg','Sort Order'), 'modified_flag' => Yii::t('IdeaRtg','Modified Flag'), 'status_id' => Yii::t('IdeaRtg','Status'), 'create_time' => Yii::t('IdeaRtg','Create Time'), 'create_usr_id' => Yii::t('IdeaRtg','Create Usr'), 'update_time' => Yii::t('IdeaRtg','Update Time'), 'update_usr_id' => Yii::t('IdeaRtg','Update Usr'), 'usr_id' => Yii::t('IdeaRtg','Usr'),