3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = 'dog.cat' . str_repeat('.dog.cat', 815); for ($i = 0; $i < 5; ++$i) { $txt .= '.dog.cat'; echo count(explode('.', $txt)) . "\n"; echo strlen($txt) . "\n"; if (preg_match("/[a-z]+(?:\.[a-z]+)*/i", $txt, $match)) { echo "A match was found." . strlen($match[0]); } else { echo "A match was not found."; } echo "\n---\n"; }
Output for git.master_jit, git.master, rfc.property-hooks
1634 6535 A match was found.6535 --- 1636 6543 A match was found.6543 --- 1638 6551 A match was found.6551 --- 1640 6559 A match was found.6559 --- 1642 6567 A match was found.6567 ---

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.24 ms | 401 KiB | 8 Q