3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = '#62 Tom Hendry Warehouse'; echo substr( $var, 0, strpos( $var, ' ', 0 ) ); echo "\n"; echo rtrim( $var, ' ' ); echo "\n"; preg_match("/^[#]+[\d]+[\s]/", $var, $match ); echo "\n"; echo ltrim( $match[0], "#" );
based on TEd68
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
#62 #62 Tom Hendry Warehouse 62