3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'asdfnsdfasdjkl <span class="number_box">1.<\/span> asdfkjsadfasd'; printf (preg_replace('/<span class="number_box">(\d).<\/span>/', '<span class="number_box">$1</span>', $str));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
asdfnsdfasdjkl <span class="number_box">1.<\/span> asdfkjsadfasd