3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^--\w+$/m'; $str = '--0000000000000fb2ad0575bf8f28 Content-Type: text/plain; charset="UTF-8" <body> Content. </body> --0000000000000fb2ad0575bf8f28 Content-Type: text/html; charset="UTF-8" <div dir="ltr">&lt;body&gt;<br>Content.<br>&lt;/body&gt;</div> --0000000000000fb2ad0575bf8f28--'; preg_match($re, $str, $matches, PREG_OFFSET_CAPTURE, 0); // Print the entire match result var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(2) { [0]=> string(30) "--0000000000000fb2ad0575bf8f28" [1]=> int(0) } }

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