3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "test string (test.url.com) abcdef java.lang.Assertion uvwxyz www.google.com abcdef", "another test string /abc/xyz/lib/def/GH.tr test 200." ]; $strings = array_map(function($x) { preg_match_all('~\bjava(?:\.\w+)+(*SKIP)(*FAIL)|(?<!/)\b\w+(?:\.\w+)+~', $x, $matches); return $matches[0]; }, $strings); print_r($strings);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => test.url.com [1] => www.google.com ) [1] => Array ( ) )

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:
28.86 ms | 405 KiB | 5 Q