3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); $emails = [ "bob@example.com", "test@example.local", "invalidemail" ]; var_dump(filter_var($emails, FILTER_VALIDATE_EMAIL, FILTER_REQUIRE_ARRAY)); var_dump(filter_var($emails, FILTER_VALIDATE_EMAIL, '16777216'));
Output for rfc.property-hooks, git.master_jit, git.master
array(3) { [0]=> string(15) "bob@example.com" [1]=> string(18) "test@example.local" [2]=> bool(false) } Fatal error: Uncaught TypeError: filter_var(): Argument #3 ($options) must be of type array|int, string given in /in/fn513:13 Stack trace: #0 /in/fn513(13): filter_var(Array, 274, '16777216') #1 {main} thrown in /in/fn513 on line 13
Process exited with code 255.

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:
40.16 ms | 1153 KiB | 4 Q