Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 38
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 38
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
filename: /in/5ntv2
function name: (null)
number of ops: 43
compiled vars: !0 = $html, !1 = $dom, !2 = $img
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, '%3Cp%3ESome+random+text+%3Cimg+src%3D%22anything.jpg%22%3E+text+%3Ciframe+data-whoops%3D%22%3Cimg%22+src%3D%22anything.jpg%22%3E%3C%2Fiframe%3E%3C%2Fp%3E'
7 1 INIT_FCALL 'define'
2 SEND_VAL 'DOC_ROOT'
3 SEND_VAL 'www.example.com%2F'
4 DO_ICALL
9 5 ECHO 'With+regex%3A%0A'
10 6 INIT_FCALL 'preg_replace'
7 SEND_VAL '%2F%3Cimg%28%5B%5E%3E%5D%2A%29src%3D%5B%22%27%5D%28%5B%5E%22%27%5C%2F%5D%5B%5E%22%27%5D%2A%29%5B%22%27%5D%2F'
8 FETCH_CONSTANT ~5 'DOC_ROOT'
9 CONCAT ~6 '%3Cimg%5C1src%3D%22', ~5
10 CONCAT ~7 ~6, '%5C2%22'
11 SEND_VAL ~7
12 SEND_VAR !0
13 DO_ICALL $8
14 ECHO $8
12 15 ECHO '%0A%0A---%0A%0AWith+a+parser%3A%0A'
14 16 NEW $9 'DOMDocument'
17 DO_FCALL 0
18 ASSIGN !1, $9
15 19 INIT_METHOD_CALL !1, 'loadHTML'
20 SEND_VAR_EX !0
21 SEND_VAL_EX 8196
22 DO_FCALL 0
16 23 INIT_METHOD_CALL !1, 'getElementsByTagName'
24 SEND_VAL_EX 'img'
25 DO_FCALL 0 $13
26 > FE_RESET_R $14 $13, ->38
27 > > FE_FETCH_R $14, !2, ->38
17 28 > INIT_METHOD_CALL !2, 'setAttribute'
29 SEND_VAL_EX 'src'
30 FETCH_CONSTANT ~15 'DOC_ROOT'
31 INIT_METHOD_CALL !2, 'getAttribute'
32 SEND_VAL_EX 'src'
33 DO_FCALL 0 $16
34 CONCAT ~17 ~15, $16
35 SEND_VAL_EX ~17
36 DO_FCALL 0
16 37 > JMP ->27
38 > FE_FREE $14
19 39 INIT_METHOD_CALL !1, 'saveHTML'
40 DO_FCALL 0 $19
41 ECHO $19
42 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0