3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myinput = 'test <span>1234</span><span>12345</span>test<span>5678</span><span>12345</span>test'; preg_match("/(<span>\d{4}<\/span>)/", $myinput, $myoutput); print_r($myoutput);
Output for 4.3.0 - 7.1.0
Array ( [0] => <span>1234</span> [1] => <span>1234</span> )