3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "wqewe<span class='amount-ordered'>196</span>qwewe"; echo preg_match("@<span class='amount-ordered'>(\d+)</span>@", $html,$m);

preferences:
46.03 ms | 402 KiB | 5 Q