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); print_r($m);

preferences:
32.38 ms | 402 KiB | 5 Q