3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "rami@gmail.com:Password This email is from Gmail email subscription is valid omar@yahoo.com:password this email is from yahoo email subscription is valid "; preg_match_all("/(.*@.*):(.*?)\s*\n/", $text, $matches); $matches = array_combine(["match", "email", "password"], $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["match"]=> array(2) { [0]=> string(24) "rami@gmail.com:Password " [1]=> string(25) "omar@yahoo.com:password " } ["email"]=> array(2) { [0]=> string(14) "rami@gmail.com" [1]=> string(14) "omar@yahoo.com" } ["password"]=> array(2) { [0]=> string(8) "Password" [1]=> string(8) "password" } }

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:
195.24 ms | 406 KiB | 5 Q