3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<STR Featuring six amazing National Parks: Glacier, Waterton Lakes, Yellowstone, Grand Teton, Arches, and Canyonlands. Your tour begins in Chicago where you will board the Empire Builder bound for the first National Park on your trip, Glacier, where you will explore the famed Going-to-the-Sun Road and enjoy a full-day excursion to Waterton Lakes National Park in Canada (passport required). STR; echo preg_replace('/(?<!\R)\R(?!\R)/u', '', $str);

preferences:
31.81 ms | 402 KiB | 5 Q