3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $column5 = array( 'london-airport', 'newyork-airport', 'paris-airport', 'barcelona-international-airport' ); foreach ($column5 as $airport) { $btitle = str_replace("-", " ", $airport); $title = ucwords($btitle); echo '<h3>'.$title.'</h3>'; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<h3>London Airport</h3><h3>Newyork Airport</h3><h3>Paris Airport</h3><h3>Barcelona International Airport</h3>