3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '"Joe Smith"<jsmith@example.com>, kjones@aol.com; someoneelse@nowhere.com, mjane@gmail.com'; preg_match_all('/\s*([\"\'])?([^"\'><,;]+)\\1?\s*((?:<[^><,]+>)?)\s*/im', $subject, $result, PREG_SET_ORDER); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> array(4) { [0]=> string(31) ""Joe Smith"<jsmith@example.com>" [1]=> string(1) """ [2]=> string(9) "Joe Smith" [3]=> string(20) "<jsmith@example.com>" } [1]=> array(4) { [0]=> string(15) " kjones@aol.com" [1]=> string(0) "" [2]=> string(14) "kjones@aol.com" [3]=> string(0) "" } [2]=> array(4) { [0]=> string(24) " someoneelse@nowhere.com" [1]=> string(0) "" [2]=> string(23) "someoneelse@nowhere.com" [3]=> string(0) "" } [3]=> array(4) { [0]=> string(16) " mjane@gmail.com" [1]=> string(0) "" [2]=> string(15) "mjane@gmail.com" [3]=> string(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:
62.1 ms | 402 KiB | 8 Q