3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'asdf'; preg_match('/.(?<secondAndThird>(?<second>.)(.))(?<fourth>.)/n', $string, $m); var_export($m);

preferences:
30.89 ms | 405 KiB | 5 Q