3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_regex($string) { return false !== @preg_match($string, 'anything'); } foreach (array('/foobar/', '/foobar/i', '`test{1,3}`', '/foo', '/foo(bar/') as $candidate) { var_dump(array($candidate, is_regex($candidate))); }
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(8) "/foobar/" [1]=> bool(true) } array(2) { [0]=> string(9) "/foobar/i" [1]=> bool(true) } array(2) { [0]=> string(11) "`test{1,3}`" [1]=> bool(true) } array(2) { [0]=> string(4) "/foo" [1]=> bool(false) } array(2) { [0]=> string(9) "/foo(bar/" [1]=> bool(false) }

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:
44.59 ms | 402 KiB | 8 Q