3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function studly_case($value) { $value = ucwords(str_replace(array('-', '_'), ' ', $value)); return str_replace(' ', '', $value); } $file = '2014_06_16_190801_create_ff_transactions_table.php'; $file = implode('_', array_slice(explode('_', $file), 4)); $class = studly_case($file); print $class;
Output for 4.3.0 - 7.1.0
CreateFfTransactionsTable.php