3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $pattern = '/^[\p{L}\-\. ]{2,100}$/'; $subject = 'Łódź'; preg_match( $pattern , $subject , $matches ); print_r( $matches ); ?>
Output for 5.4.0 - 5.4.26, 5.4.34 - 7.2.0
Array ( )
Output for 4.3.0 - 5.3.29, 5.4.27 - 5.4.32
<? $pattern = '/^[\p{L}\-\. ]{2,100}$/'; $subject = 'Łódź'; preg_match( $pattern , $subject , $matches ); print_r( $matches ); ?>