3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "+!This is a text with some % special chars/text and ( for a string query to match. Then !! mor&&&e and so on...chars/text."; $stringToFind = "hars/t"; preg_match('~.{10}' . preg_quote($stringToFind) . '.{10}~', $text, $match); print_r($match);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => special chars/text and ( )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
170.87 ms | 405 KiB | 5 Q