3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results['id'] = 14; $results['post_link'] = 'cold_duck'; ?> <button type="button" class="btn btn-sm btn-outline-secondary" onclick="window.location.href = '<?= htmlentities($results["id"], ENT_QUOTES) ?>/<?= htmlentities($results["post_link"], ENT_QUOTES) ?>'">View</button>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlqBe
function name:  (null)
number of ops:  20
compiled vars:  !0 = $results
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'id'
          1        OP_DATA                                                  14
    3     2        ASSIGN_DIM                                               !0, 'post_link'
          3        OP_DATA                                                  'cold_duck'
    5     4        ECHO                                                     '+%0A%0A++++++++++++++++++++%3Cbutton+type%3D%22button%22+class%3D%22btn+btn-sm+btn-outline-secondary%22+onclick%3D%22window.location.href+%3D+%27'
    7     5        INIT_FCALL                                               'htmlentities'
          6        FETCH_DIM_R                                      ~3      !0, 'id'
          7        SEND_VAL                                                 ~3
          8        SEND_VAL                                                 3
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
         11        ECHO                                                     '%2F'
         12        INIT_FCALL                                               'htmlentities'
         13        FETCH_DIM_R                                      ~5      !0, 'post_link'
         14        SEND_VAL                                                 ~5
         15        SEND_VAL                                                 3
         16        DO_ICALL                                         $6      
         17        ECHO                                                     $6
         18        ECHO                                                     '%27%22%3EView%3C%2Fbutton%3E'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.25 ms | 1395 KiB | 15 Q