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", $text, 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cUHKZ
function name:  (null)
number of ops:  9
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%3F%3D%28%3F%3A%23%5Ba-z%5D%2B%5Cs%2A%29%2B%24%29%2Fi'
          3        SEND_VAL                                                 '%0A%0A'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.67 ms | 996 KiB | 14 Q