3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump((string)1.00000000000001); var_dump(filter_var(1.00000000000001, FILTER_VALIDATE_INT));
based on Y4EQU
Output for 5.2.0 - 7.4.0
string(1) "1" int(1)
Output for 5.0.0 - 5.1.6
string(1) "1" Fatal error: Call to undefined function filter_var() in /in/OK3RF on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(1) "1" Fatal error: Call to undefined function: filter_var() in /in/OK3RF on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(1) "1" Fatal error: Call to undefined function: filter_var() in /in/OK3RF on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(1) "1" Fatal error: Call to undefined function: filter_var() in /in/OK3RF on line 4