Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 30 Branch analysis from position: 19 2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 30 Branch analysis from position: 20 1 jumps found. (Code = 42) Position 1 = 19 Branch analysis from position: 19 Branch analysis from position: 30 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 30 filename: /in/NITNT function name: (null) number of ops: 40 compiled vars: !0 = $html_string, !1 = $doc, !2 = $xpath, !3 = $script, !4 = $comment line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 3 0 E > ASSIGN !0, '%0A%0A%0A%3Cdiv%3E+Below+are+object+Node+with+the+html+code+%3C%2Fdiv%3E%0A%0A%3Cscript%3E+alert%28%27i+want+this+to+be+replaced.+it+has+no+newline%27%29%3B+%3C%2Fscript%3E%0A%0A%3Cdiv%3E+I+don%27t+want+this+to+be+replaced+%3C%2Fdiv%3E%0A%0A%3Cscript%3E+%0A++++console.log%28%27i+also+want+this+to+be+replaced.+It+has+newline%27%29%3B+%0A%3C%2Fscript%3E%0A%0A%3Cdiv%3E+This+is+a+div+tag+and+not+a+script%2C+so+it+should+not+be+replaced+%3C%2Fdiv%3E%0A%0A%3Cscript%3E+console.warn%28Finally%2C+this+should+be+replaced%2C+it+also+has+newline%27%29%3B+%0A%3C%2Fscript%3E%0A%0A%3Cdiv%3E+The+above+is+the+final+result+of+the+replacements+%3C%2Fdiv%3E+' 23 1 NEW $6 'DOMDocument' 2 DO_FCALL 0 3 ASSIGN !1, $6 24 4 INIT_METHOD_CALL !1, 'loadHTML' 5 ROPE_INIT 3 ~10 '%3Chtml%3E' 6 ROPE_ADD 1 ~10 ~10, !0 7 ROPE_END 2 ~9 ~10, '%3C%2Fhtml%3E' 8 SEND_VAL_EX ~9 9 SEND_VAL_EX 8196 10 DO_FCALL 0 25 11 NEW $13 'DOMXPath' 12 SEND_VAR_EX !1 13 DO_FCALL 0 14 ASSIGN !2, $13 26 15 INIT_METHOD_CALL !2, 'query' 16 SEND_VAL_EX '%2F%2Fscript' 17 DO_FCALL 0 $16 18 > FE_RESET_R $17 $16, ->30 19 > > FE_FETCH_R $17, !3, ->30 27 20 > INIT_METHOD_CALL !1, 'createComment' 21 SEND_VAL_EX 'THIS+SCRIPT+CONTENT+HERE+HAS+BEEN+ALTERED' 22 DO_FCALL 0 $18 23 ASSIGN !4, $18 28 24 FETCH_OBJ_R ~20 !3, 'parentNode' 25 INIT_METHOD_CALL ~20, 'replaceChild' 26 SEND_VAR_EX !4 27 SEND_VAR_EX !3 28 DO_FCALL 0 26 29 > JMP ->19 30 > FE_FREE $17 30 31 INIT_FCALL 'substr' 32 INIT_METHOD_CALL !1, 'saveHTML' 33 DO_FCALL 0 $22 34 SEND_VAR $22 35 SEND_VAL 6 36 SEND_VAL -8 37 DO_ICALL $23 38 ECHO $23 39 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0