3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); preg_match('/^([0-9]+) *- *\.html$/', "2-blabla.html", $matches); var_dump($matches);

preferences:
35.54 ms | 402 KiB | 5 Q