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>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D88TE
function name:  (null)
number of ops:  18
compiled vars:  !0 = $options, !1 = $id, !2 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'filter_input'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 'id'
          4        SEND_VAL                                                 519
          5        INIT_ARRAY                                       ~4      !0, 'options'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    9     9        INIT_FCALL                                               'sprintf'
         10        SEND_VAL                                                 'https%3A%2F%2Fwww.stronka.pl%2Findex.php%3Fid%3D%25d'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
   11    14        CONCAT                                           ~9      '%3Ca+href%3D%22', !2
         15        CONCAT                                           ~10     ~9, '%22%3E%3Cimg+src%3D%22https%3A%2F%2Fwww.stronka.pl%2Fbutton.png%22%3E%3C%2Fa%3E'
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.28 ms | 1432 KiB | 15 Q