3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '"smo6@krasnoyarsk.russvet.ru" <smo6@krasnoyarsk.russvet.ru>'; $pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i'; preg_match_all($pattern, $string, $matches); var_dump($matches[0]); preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $string, $matches); print_r($matches[0]); ?>
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
array(2) { [0]=> string(21) "smo6@krasnoyarsk.russ" [1]=> string(21) "smo6@krasnoyarsk.russ" } Array ( [0] => smo6@krasnoyarsk.russvet.ru [1] => smo6@krasnoyarsk.russvet.ru )

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:
65.22 ms | 407 KiB | 5 Q