3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace('/\s/sm', '<$0>', "aa bb\ncc\tdd\r\nee\faa\vdd");
Output for 5.4.41 - 5.4.45, 5.5.10 - 7.2.0
aa< >bb< >cc< >dd< >< >ee< >aa< >dd
Output for 5.2.5 - 5.4.40, 5.5.0 - 5.5.9
aa< >bb< >cc< >dd< >< >ee< >aa dd
Output for 4.3.0 - 5.2.4
aa< >bb< >cc< >dd< >< >ee\faa\vdd