3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(filter_var('bücher@example.net', FILTER_VALIDATE_EMAIL, FILTER_FLAG_EMAIL_UNICODE));
based on 1f3pF
Output for 7.1.0 - 7.3.1
string(19) "bücher@example.net"
Output for 5.2.0 - 7.0.20
Notice: Use of undefined constant FILTER_FLAG_EMAIL_UNICODE - assumed 'FILTER_FLAG_EMAIL_UNICODE' in /in/mHoIk on line 3 bool(false)
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function filter_var() in /in/mHoIk on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: filter_var() in /in/mHoIk on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: filter_var() in /in/mHoIk on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: filter_var() in /in/mHoIk on line 3