3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = "/(.*volume:\s+)([0-9]+)(%)/i"; $text = "volume: 90%"; preg_match($regex , $text, $matches); echo $matches[2];

preferences:
78.34 ms | 402 KiB | 5 Q