3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = ['This is. a. test.', 'This is a........... test.', 'This is. a test', 'This is a test', 'This. is... a. test.' ]; foreach ($strings as $string) { if (($offset = strpos($string, '...')) !== false) { echo "Yes, found 3 in a row ($string -> $offset)"; } else { echo "Nope, no occurrence of 3 dots in a row ($string)"; } echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Nope, no occurrence of 3 dots in a row (This is. a. test.) Yes, found 3 in a row (This is a........... test. -> 9) Nope, no occurrence of 3 dots in a row (This is. a test) Nope, no occurrence of 3 dots in a row (This is a test) Yes, found 3 in a row (This. is... a. test. -> 8)

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:
65.35 ms | 406 KiB | 5 Q