3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string ='öl??lö aßßhda äödasdas'; var_dump(preg_split('/\s+/', $areaName)); var_dump(preg_split('/\s+/u', $areaName));
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: areaName in /in/oXHoG on line 3 array(1) { [0]=> string(0) "" } Notice: Undefined variable: areaName in /in/oXHoG on line 4 array(1) { [0]=> string(0) "" }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: areaName in /in/oXHoG on line 3 array(1) { [0]=> string(0) "" } Notice: Undefined variable: areaName in /in/oXHoG on line 4 array(1) { [0]=> string(0) "" }