3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regex = "/(.*volume:\s+)([0-9]+)(%)/i"; $text = "volume: 90%"; preg_match($regex , $text, $matches); echo $matches[1];
based on mXfgc
Output for 4.3.0 - 7.2.0
volume: