3v4l.org

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