3v4l.org

run code in 300+ 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.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.13
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /in/opYVk on line 9

preferences:
65.15 ms | 406 KiB | 5 Q