3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( 'budget_id' => 'Budget', 'tpc_id' => 'Tpc', '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('BudgetTpc','".$value."'),"; echo "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
'budget_id' => Yii::t('BudgetTpc','Budget'), 'tpc_id' => Yii::t('BudgetTpc','Tpc'), 'modified_flag' => Yii::t('BudgetTpc','Modified Flag'), 'status_id' => Yii::t('BudgetTpc','Status'), 'create_time' => Yii::t('BudgetTpc','Create Time'), 'create_usr_id' => Yii::t('BudgetTpc','Create Usr'), 'update_time' => Yii::t('BudgetTpc','Update Time'), 'update_usr_id' => Yii::t('BudgetTpc','Update Usr'),