3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL); /** @deprecated */ function doFoo(mixed $filter): void { $x = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_STRING ); } doFoo(123);
Output for 8.5.0 - 8.5.3
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated since 8.1, use htmlspecialchars() instead in /in/opYVk on line 9
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /in/opYVk on line 9

preferences:
66.48 ms | 982 KiB | 4 Q