3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = 'toto tutu 1.3 tdfs fdsfds fdsfsd'; preg_match('/^[^0-9]+/', $t, $matches); echo trim($matches[0]);
based on 7ERVS
Output for 4.3.0 - 7.1.0
toto tutu