3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( 'id' => 'ID', 'name' => 'Name', 'model' => 'Model', 'model_id' => 'Model', '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('Jtc','".$value."'),"; echo "\n"; }
Output for 4.3.0 - 7.1.0
'id' => Yii::t('Jtc','ID'), 'name' => Yii::t('Jtc','Name'), 'model' => Yii::t('Jtc','Model'), 'model_id' => Yii::t('Jtc','Model'), 'modified_flag' => Yii::t('Jtc','Modified Flag'), 'status_id' => Yii::t('Jtc','Status'), 'create_time' => Yii::t('Jtc','Create Time'), 'create_usr_id' => Yii::t('Jtc','Create Usr'), 'update_time' => Yii::t('Jtc','Update Time'), 'update_usr_id' => Yii::t('Jtc','Update Usr'),