3v4l.org

run code in 300+ PHP versions simultaneously
<?php $problem_email = "bounce@simulator.amazonses.com"; $from_email = "\"Sendy\" <michaelgordon@cfraresearch.com>"; $from_email = str_replace(array('"Sendy" <', '>'), '', $from_email); print "The from email is $from_email<br>"; if(!filter_var($problem_email,FILTER_VALIDATE_EMAIL)) { print "failed validation<br>"; } else { print "passed validation<br>"; } $query = 'UPDATE apps SET bounce_setup=1 WHERE from_email = "'.$from_email.'"'; print "the query is $query<br>"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
The from email is michaelgordon@cfraresearch.com<br>passed validation<br>the query is UPDATE apps SET bounce_setup=1 WHERE from_email = "michaelgordon@cfraresearch.com"<br>

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:
86.84 ms | 401 KiB | 8 Q