3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'Blah blah blah. THIS SENTENCE SHOULD BE SELECTED [bbcode] text', 'THIS SENTENCE SHOULD BE SELECTED [bbcode] text', 'A trick sentence. And another. THIS SENTENCE SHOULD BE SELECTED [bbcode]] text' ]; foreach ($tests as $test) { var_export(preg_match('/ *\K[^.]+?(?=\s+\[bbcode])/i', $test, $m) ? $m[0] : 'no match'); echo "\n---\n"; }
Output for git.master_jit, git.master, rfc.property-hooks
'THIS SENTENCE SHOULD BE SELECTED' --- 'THIS SENTENCE SHOULD BE SELECTED' --- 'THIS SENTENCE SHOULD BE SELECTED' ---

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