3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(filter_var('8.8.4.4', FILTER_VALIDATE_IP, ''));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.3, 8.4.5 - 8.4.22, 8.5.0 - 8.5.7
Fatal error: Uncaught TypeError: filter_var(): Argument #3 ($options) must be of type array|int, string given in /in/Sd6oS:3 Stack trace: #0 /in/Sd6oS(3): filter_var('8.8.4.4', 275, '') #1 {main} thrown in /in/Sd6oS on line 3
Process exited with code 255.
Output for 8.4.4
Fatal error: Uncaught TypeError: filter_var(): Argument #3 ($options) must be of type array|int, string given in /in/Sd6oS:3 Stack trace: #0 /in/Sd6oS(3): filter_var('8.8.4.4', 275, '') #1 {main} thrown in /in/Sd6oS on line 3
Process exited with code 255.
Output for 7.1.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
string(7) "8.8.4.4"

preferences:
75.41 ms | 1436 KiB | 4 Q