3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username_pattern = '/^(?!\d*$)[a-z0-9]{8,20}$/'; $userNames = [ "1a3b5678", "1a3b5678abcd", "12345678", "1a3b5678abcddddddddddddddddddddddddddddddd", "1a3B5678", "a1" ]; foreach ($userNames as $userName) { if (preg_match($username_pattern, $userName)) { echo "Match - $userName" . PHP_EOL; } else { echo "No match - $userName" . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
Match - 1a3b5678 Match - 1a3b5678abcd No match - 12345678 No match - 1a3b5678abcddddddddddddddddddddddddddddddd No match - 1a3B5678 No match - a1

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:
79.68 ms | 401 KiB | 8 Q