3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "This is my test string that needs to be matched \r\n and not the test keywords following it"; if (preg_match("/(.*?)test/", $text, $match)) { print_r($match); } if (preg_match("/^(.*?)test/", $text, $match)) { print_r($match); } if (preg_match("/(.*)test/", $text, $match)) { print_r($match); } ?>

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Array change keys
Array ( [0] => This is my test [1] => This is my ) Array ( [0] => This is my test [1] => This is my ) Array ( [0] => This is my test [1] => This is my )
Output for Lexical anon
Array ( [0] => This is my test [1] => This is my ) Array ( [0] => This is my test [1] => This is my ) Array ( [0] => This is my test [1] => This is my )
Output for Typed properties
Array ( [0] => This is my test [1] => This is my ) Array ( [0] => This is my test [1] => This is my ) Array ( [0] => This is my test [1] => This is my )

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