3v4l.org

run code in 300+ PHP versions simultaneously
<?php $err = "Hello, World!"; header('content-type:text/plain'); echo '<script type="text/javascript"> alert('.$err.'); </script>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LkF8N
function name:  (null)
number of ops:  8
compiled vars:  !0 = $err
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello%2C+World%21'
    4     1        INIT_FCALL                                               'header'
          2        SEND_VAL                                                 'content-type%3Atext%2Fplain'
          3        DO_ICALL                                                 
    6     4        CONCAT                                           ~3      '%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A++++alert%28', !0
          5        CONCAT                                           ~4      ~3, '%29%3B%0A%3C%2Fscript%3E'
          6        ECHO                                                     ~4
    7     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.1 ms | 1394 KiB | 15 Q