3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '"4:01pm - <b>n1234</b>",+0.50'; preg_match('/\"(.*?)\s-\s(.*?)\",(.*)/', strip_tags($str), $matches); unset($matches[0]); // unset [0] because that is the full match. $matches[] = array_shift($matches); // takes first item and makes it last. echo implode("<br>\n", $matches); //var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
n1234<br> +0.50<br> 4:01pm

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