3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "New(mbambenek,05-08-2015 11:03:12),In_Work(mbambenek,05-08-2015 16:05:59)"; $matches = []; preg_match('/New\(([^)]+)\)/', $str, $matches); list($name, $time) = explode(",",$matches[1]); echo $name,"\n",$time;
Output for git.master, git.master_jit, rfc.property-hooks
mbambenek 05-08-2015 11:03:12

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