3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'default' => 0, 'min_range' => 0, 'max_range' => 999, ]; $id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT, ['options' => $options]); $link = sprintf('https://www.stronka.pl/index.php?id=%d', $id); echo '<a href="'. $link .'"><img src="https://www.stronka.pl/button.png"></a>';
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
<a href="https://www.stronka.pl/index.php?id=0"><img src="https://www.stronka.pl/button.png"></a>

preferences:
68.33 ms | 406 KiB | 5 Q