3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '| iptv: { 1 } { 8000 } { localhost.test/categories/music.xml } { golden } { 000000 } { 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 1 } | msg: { 1 } { 0 } { Welcome expire: 2020-01-20 } { 0 } { 0 } { 00 } { 0 }'; $rule = '/{\h(\S+\.xml)\h}.*?{\h[^:]+: (\d{4}-\d{2}-\d{2})\h}/i'; preg_match_all($rule, $str, $matches, PREG_SET_ORDER, 0); echo $matches[0][1]; echo PHP_EOL; echo $matches[0][2];
Output for git.master, git.master_jit, rfc.property-hooks
localhost.test/categories/music.xml 2020-01-20

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