3v4l.org

run code in 300+ PHP versions simultaneously
<?php $columns = array( 0 => 'ISO', 1 => 'Country', 2 => 'Country Code', 3 => 'Type of number', 4 => 'Voice Enabled', 5 => 'SMS Enabled', 6 => 'MMS Enabled', 7 => 'Domestic Voice Only', 8 => 'Domestic SMS only', 9 => 'Price /num/month', 10 => 'Inbound Voice price/min', 11 => 'Inbound SMS price/msg ', 12 => 'Inbound MMS price/msg ', 13 => 'Beta Status', 14 => 'Address Required', ); $cols = array_filter($columns, '_filter_column_names'); function _filter_column_names($column_name){ $column_name = str_replace(' /', '_', $column_name); $column_name = strtolower(str_replace(array(' ', '/'), '_', trim($column_name))); echo $column_name.', '; return $column_name; } print_r($cols);

preferences:
23.69 ms | 408 KiB | 5 Q