3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "abcdef"; $pattern = '/(ab)(c)(def)/'; preg_match($pattern,$subject, $m); print_r($m);

preferences:
48.84 ms | 402 KiB | 5 Q