3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q_id = "abc"; echo ("<script language='JavaScript'> window.location.href='question.php?q_id=$q_id'; window.alert('Thank You! Your answer is online now.') </script>");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FblZQ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $q_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abc'
    3     1        ROPE_INIT                                     3  ~3      '%3Cscript+language%3D%27JavaScript%27%3E%0A+++++++++window.location.href%3D%27question.php%3Fq_id%3D'
    4     2        ROPE_ADD                                      1  ~3      ~3, !0
          3        ROPE_END                                      2  ~2      ~3, '%27%3B%0A+++++++++window.alert%28%27Thank+You%21+Your+answer+is+online+now.%27%29%0A+++++++%3C%2Fscript%3E'
          4        ECHO                                                     ~2
    6     5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
289.38 ms | 1000 KiB | 13 Q