3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT It's essential to keep your pup cool in the summer months! Try to keep them out of the heat as much as #possible - keep the house cool, #provide shade and run a #fan for them if #you can. #Dogs #Animals #Summer #DogCare #Humidity #HeatStroke #Cooling #HeatExhaustion #StayCool #HealthyPups TEXT; echo preg_replace('/ ((?:#[a-z]+\s*)+)$/i', "\n\n$1", $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9lPUG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'It%27s+essential+to+keep+your+pup+cool+in+the+summer+months%21+Try+to+keep+them+out+of+the+heat+as+much+as+%23possible+-+keep+the+house+cool%2C+%23provide+shade+and+run+a+%23fan+for+them+if+%23you+can.+%23Dogs+%23Animals+%23Summer+%23DogCare+%23Humidity+%23HeatStroke+%23Cooling+%23HeatExhaustion+%23StayCool+%23HealthyPups'
    7     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F+%28%28%3F%3A%23%5Ba-z%5D%2B%5Cs%2A%29%2B%29%24%2Fi'
          3        SEND_VAL                                                 '%0A%0A%241'
          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:
138.26 ms | 996 KiB | 14 Q