3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<script>alert('mensagem');location.href='http://www.google.com';</script>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LKs80
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%3Cscript%3Ealert%28%27mensagem%27%29%3Blocation.href%3D%27http%3A%2F%2Fwww.google.com%27%3B%3C%2Fscript%3E'
          1      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.55 ms | 1392 KiB | 13 Q