3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( 'id' => 'ID', 'usr_id' => 'Usr', 'grp_id' => 'Grp', 'notification_frequency_id' => 'Notification Frequency', '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', ); foreach ($test as $key => $value) { echo "'".$key."' => Yii::t('GrpUsrPref','".$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('GrpUsrPref','ID'), 'usr_id' => Yii::t('GrpUsrPref','Usr'), 'grp_id' => Yii::t('GrpUsrPref','Grp'), 'notification_frequency_id' => Yii::t('GrpUsrPref','Notification Frequency'), 'modified_flag' => Yii::t('GrpUsrPref','Modified Flag'), 'status_id' => Yii::t('GrpUsrPref','Status'), 'create_time' => Yii::t('GrpUsrPref','Create Time'), 'create_usr_id' => Yii::t('GrpUsrPref','Create Usr'), 'update_time' => Yii::t('GrpUsrPref','Update Time'), 'update_usr_id' => Yii::t('GrpUsrPref','Update Usr'),