3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'Call a group of 8 Shadow Beasts to plummet from the sky at a targeted location dealing 3200% total weapon damage over 5 seconds and stunning enemies hit for 2 seconds.'; echo preg_replace("/([0-9]+%)/", '<span class="d3-text-green">$0</span>', $string);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Call a group of 8 Shadow Beasts to plummet from the sky at a targeted location dealing <span class="d3-text-green">3200%</span> total weapon damage over 5 seconds and stunning enemies hit for 2 seconds.