3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); preg_match('(/^\s?(\w{0,3})$)\|(\s\w{0,3}$)/', "the end", $matches); var_dump($matches);

preferences:
27.31 ms | 402 KiB | 5 Q