3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<TEXT [Beginning] ABC [Ending] [Beginning] DEF [Ending] [Beginning] GHI [Ending] [Beginning] JKL [Ending] [Beginning] MNO [Ending] TEXT; preg_match_all('/^' . preg_quote('[Beginning]') . '[\r\n]+(.*)[\r\n]+' . preg_quote('[Ending]') . '$/m', $string, $matches); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => [Beginning] ABC [Ending] [1] => [Beginning] DEF [Ending] [2] => [Beginning] GHI [Ending] [3] => [Beginning] JKL [Ending] [4] => [Beginning] MNO [Ending] ) [1] => Array ( [0] => ABC [1] => DEF [2] => GHI [3] => JKL [4] => MNO ) )

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:
60.67 ms | 402 KiB | 8 Q