3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "abc\n"; echo (preg_match('/^[a-z]\z/u', $string)) ? 'true' : 'false'; echo "\n"; echo (preg_match('/^[a-z]/u', $string)) ? 'true' : 'false';
Output for 4.3.0 - 7.1.0
false true