3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = ' The quick brown fox jumped over the lazy dog.'; $patterns = array(); $patterns[0] = '/^\s*/'; $replacements = array(); $replacements[0] = ''; echo preg_replace($patterns, $replacements, $string); ?>
based on i5sDi
Output for 4.3.0 - 7.2.0
The quick brown fox jumped over the lazy dog.