3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( 'id' => 'ID', 'cmt_id' => 'Cmt', 'text' => 'Reply', 'helpful_true' => 'Helpful True', 'helpful_false' => 'Helpful False', 'old_registration_id' => 'Old Registration', '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', ); foreach ($test as $key => $value) { echo "'".$key."' => Yii::t('CmtRepl','".$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('CmtRepl','ID'), 'cmt_id' => Yii::t('CmtRepl','Cmt'), 'text' => Yii::t('CmtRepl','Reply'), 'helpful_true' => Yii::t('CmtRepl','Helpful True'), 'helpful_false' => Yii::t('CmtRepl','Helpful False'), 'old_registration_id' => Yii::t('CmtRepl','Old Registration'), 'sort_order' => Yii::t('CmtRepl','Sort Order'), 'modified_flag' => Yii::t('CmtRepl','Modified Flag'), 'status_id' => Yii::t('CmtRepl','Status'), 'create_time' => Yii::t('CmtRepl','Create Time'), 'create_usr_id' => Yii::t('CmtRepl','Create Usr'), 'update_time' => Yii::t('CmtRepl','Update Time'), 'update_usr_id' => Yii::t('CmtRepl','Update Usr'),