3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zeichenkette = "abcdef"; $suchmuster = '/^def/'; preg_match($suchmuster, $zeichenkette, $treffer, PREG_OFFSET_CAPTURE, 3); print_r($treffer); ?>
based on jo0tq
Output for 4.3.3 - 7.2.0
Array ( )
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for preg_match() in /in/F1miS on line 4