3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/(?<=^\\S|\\s\\S|\\s)[RD]/g"; $str = "-D-K4_NNNN_M116_R1_001.gz _D-K4_NNNN_M56_R1_001.gz R-K4_NNNN_KQ9_R1_001.gz D-K4_NNNN_M987_R1_001.gz _R-K4_NNNN_M987_R1_001.gz"; preg_match_all($re, $str, $matches); echo '<pre>'; print_r($matches); echo '</pre>';
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_match_all(): Unknown modifier 'g' in /in/hX1Un on line 6 <pre></pre>

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