3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<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). Featuring six amazing National Parks: Glacier, Waterton Lakes, Yellowstone, Grand Teton, Arches, and Canyonlands. STR; echo preg_replace('/(?<!\n)\R(?!\R)/u', '', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GafRp
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Featuring+six+amazing+National+Parks%3A+Glacier%2C%0AWaterton+Lakes%2C+Yellowstone%2C+Grand+Teton%2C+Arches%2C+and+Canyonlands.%0A%0AYour+tour+begins+in+Chicago+where+you+will+board%0Athe+Empire+Builder%0Abound+for+the+first+National+Park+on+your+trip%2C+Glacier%2C+where+you+will+explore+the+famed+Going-to-the-Sun+Road+and+enjoy+a+full-day+excursion+to%0AWaterton+Lakes+National+Park+in+Canada+%28passport+required%29.%0A%0AFeaturing+six+amazing+National+Parks%3A+Glacier%2C%0AWaterton+Lakes%2C+Yellowstone%2C+Grand+Teton%2C+Arches%2C+and+Canyonlands.'
   16     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%3F%3C%21%5Cn%29%5CR%28%3F%21%5CR%29%2Fu'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.09 ms | 1394 KiB | 15 Q