3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "test@test.edu", "test@test.edu.pl", "test@test.com", "test.edu@test.com" ]; foreach ($strings as $string) { if (in_array("edu", explode(".", explode("@", $string)[1]))) { echo "$string contains .edu after @" . PHP_EOL; } else { echo "$string dot not contain .edu after @" . PHP_EOL;; } }
Output for git.master, git.master_jit, rfc.property-hooks
test@test.edu contains .edu after @ test@test.edu.pl contains .edu after @ test@test.com dot not contain .edu after @ test.edu@test.com dot not contain .edu after @

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