3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('~a(?=\Kb)~', 'abc', $matches); print_r($matches); preg_match('~a(?=b\K)~', 'abc', $matches); print_r($matches);

preferences:
27.15 ms | 405 KiB | 5 Q