3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "~(^{li}.+\\r?\\n?)+~m"; $str = "Текст текст тест. Не должен попасть в выборку\n{li} вариант 1 Блок 1\n{li} вариант 2 Блок 1\n{li} вариант 3 Блок 1\nТекст текст тест. Не должен попасть в выборку\nТекст текст тест. Не должен попасть в выборку\n{li} вариант 6 Блок 2\n{li} вариант 7 Блок 2\nТекст текст тест. Не должен попасть в выборку\nТекст текст тест. Не должен попасть в выборку"; preg_match_all($re, $str, $matches); var_dump($matches[0]);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(99) "{li} вариант 1 Блок 1 {li} вариант 2 Блок 1 {li} вариант 3 Блок 1 " [1]=> string(66) "{li} вариант 6 Блок 2 {li} вариант 7 Блок 2 " }

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