3v4l.org

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

preferences:
73.47 ms | 1009 KiB | 5 Q