3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='<script type=\'text/javascript\'>alert(\'NDS\');</script>'; echo str_replace('"',"A",$url); if (true) echo "ANGRIFF"; else echo "SECURE"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5WdMS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cscript+type%3D%27text%2Fjavascript%27%3Ealert%28%27NDS%27%29%3B%3C%2Fscript%3E'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%22'
          3        SEND_VAL                                                 'A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    4     7      > JMPZ                                                     <true>, ->10
          8    >   ECHO                                                     'ANGRIFF'
          9      > JMP                                                      ->11
    5    10    >   ECHO                                                     'SECURE'
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.66 ms | 1394 KiB | 15 Q