3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
$subject = "abcdef"; $pattern = '/^def/'; preg_match($pattern, $subject, $matches); print_r($matches);<?php
Output for 4.3.0 - 5.4.32
$subject = "abcdef"; $pattern = '/^def/'; preg_match($pattern, $subject, $matches); print_r($matches);<?php