3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emails = '"Bob Smith" <bob@company.com>, joe@company.com, "John Doe"<john@company.com>, Billy Doe<billy@company.com>'; preg_match_all('/(?|(?|"([^"]+)"|([^<@]+)) ?<(.+?)>|()(.+?))(?:$|, ?)/', $emails, $matches, PREG_SET_ORDER); var_export( array_column($matches, 1, 2) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'bob@company.com' => 'Bob Smith', 'joe@company.com' => '', 'john@company.com' => 'John Doe', 'billy@company.com' => 'Billy Doe', )

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