3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<a href="/football/italy/1-division-phase-a/fixtures/7-days/#" data-y="f1" data-v="this-is-variable">2 - 0</a>'; preg_match("/>([^<]+)</", $str, $matches); echo $matches[1];

preferences:
23.35 ms | 404 KiB | 5 Q