3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = "#^/([a-z]{2})/([a-zA-Z0-9_-]++)/([a-zA-Z0-9_-]++)/(.*/)?+[/]{0,1}$#"; $pattern = "#^/([a-z]{2})/([a-zA-Z0-9_-]++)/([a-zA-Z0-9_-]++)((/.*+)?+)+/$#u"; $subject = '/en/user/login/foo/bar/'; var_dump(preg_match($pattern, $subject, $matches), $matches); $subject = '/en/user/login'; var_dump(preg_match($pattern, $subject, $matches), $matches);

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

Output for Typed properties v2
int(0) array(0) { } int(0) array(0) { }
Output for Array change keys
int(0) array(0) { } int(0) array(0) { }
Output for Lexical anon
int(0) array(0) { } int(0) array(0) { }

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