3v4l.org

run code in 200+ 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>', PHP_EOL; }
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
<h3>London Airport</h3> <h3>Newyork Airport</h3> <h3>Paris Airport</h3> <h3>Barcelona International Airport</h3>
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
<h3>London Airport</h3> Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/HjRW5 on line 13 PHP_EOL<h3>Newyork Airport</h3> Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/HjRW5 on line 13 PHP_EOL<h3>Paris Airport</h3> Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/HjRW5 on line 13 PHP_EOL<h3>Barcelona International Airport</h3> Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/HjRW5 on line 13 PHP_EOL