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] = $x; $replacements = array(); $replacements[0] = ''; echo preg_replace('/^\s*/', '', $string); ?>
based on kfCWF
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: x in /in/NAdrh on line 4 The quick brown fox jumped over the lazy dog.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: x in /in/NAdrh on line 4 The quick brown fox jumped over the lazy dog.