Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/mJkmb
function name: (null)
number of ops: 5
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
30 0 E > INIT_FCALL 'changeimagepath'
31 1 SEND_VAL '%3Cdiv+class%3D%22wrapper%22%3E%0A%0A%3Cimg+src%3D%22img%2Fdemo%2Fdesktop-img%2Fsample1.jpg%22+width%3D%22200%22+height%3D%22200%22+alt%3D%22image%22%3E%0A%3Cimg+src%3D%22img%2Fdemo%2Fdesktop-img%2Fsample2.jpg%22+width%3D%22200%22+height%3D%22200%22+alt%3D%22image%22%3E%0A%0A%3Cpre%3E%0A%3Cimg+src%3D%22img%2Fdemo%2Fdesktop-img%2Fsample1.jpg%22+width%3D%22200%22+height%3D%22200%22+alt%3D%22image%22%3E%0A%3Cimg+src%3D%22img%2Fdemo%2Fdesktop-img%2Fsample2.jpg%22+width%3D%22200%22+height%3D%22200%22+alt%3D%22image%22%3E%0A%3C%2Fpre%3E%0A%0A%3Ccode%3E%0A%3Cimg+src%3D%22img%2Fdemo%2Fdesktop-img%2Fsample1.jpg%22+width%3D%22200%22+height%3D%22200%22+alt%3D%22image%22%3E%0A%3Cimg+src%3D%22img%2Fdemo%2Fdesktop-img%2Fsample2.jpg%22+width%3D%22200%22+height%3D%22200%22+alt%3D%22image%22%3E%0A%3C%2Fcode%3E%0A%0A%3C%2Fdiv%3E'
30 2 DO_FCALL 0 $0
31 3 ECHO $0
48 4 > RETURN 1
Function walkdom:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 31
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 42
Branch analysis from position: 34
2 jumps found. (Code = 77) Position 1 = 36, Position 2 = 41
Branch analysis from position: 36
2 jumps found. (Code = 78) Position 1 = 37, Position 2 = 41
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
Branch analysis from position: 42
Branch analysis from position: 7
filename: /in/mJkmb
function name: walkDOM
number of ops: 43
compiled vars: !0 = $node, !1 = $child
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > RECV !0
4 1 FETCH_OBJ_R ~2 !0, 'nodeName'
2 IS_EQUAL ~3 ~2, 'pre'
3 > JMPNZ_EX ~3 ~3, ->7
4 > FETCH_OBJ_R ~4 !0, 'nodeName'
5 IS_EQUAL ~5 ~4, 'code'
6 BOOL ~3 ~5
7 > > JMPZ ~3, ->10
6 8 > > RETURN null
4 9* JMP ->42
8 10 > FETCH_OBJ_R ~6 !0, 'nodeName'
11 IS_EQUAL ~6, 'img'
12 > JMPZ ~7, ->31
10 13 > FETCH_OBJ_R ~8 !0, 'attributes'
14 INIT_METHOD_CALL ~8, 'getNamedItem'
15 SEND_VAL_EX 'src'
16 DO_FCALL 0 $9
17 SEPARATE $9 $9
18 INIT_FCALL 'str_replace'
19 SEND_VAL 'desktop-img'
20 SEND_VAL 'mobile-img'
21 FETCH_OBJ_R ~11 !0, 'attributes'
22 INIT_METHOD_CALL ~11, 'getNamedItem'
23 SEND_VAL_EX 'src'
24 DO_FCALL 0 $12
25 FETCH_OBJ_R ~13 $12, 'nodeValue'
26 SEND_VAL ~13
27 DO_ICALL $14
28 ASSIGN_OBJ $9, 'nodeValue'
29 OP_DATA $14
8 30 > JMP ->42
12 31 > INIT_METHOD_CALL !0, 'hasChildNodes'
32 DO_FCALL 0 $15
33 > JMPZ $15, ->42
14 34 > FETCH_OBJ_R ~16 !0, 'childNodes'
35 > FE_RESET_R $17 ~16, ->41
36 > > FE_FETCH_R $17, !1, ->41
16 37 > INIT_FCALL_BY_NAME 'walkDOM'
38 SEND_VAR_EX !1
39 DO_FCALL 0
14 40 > JMP ->36
41 > FE_FREE $17
19 42 > > RETURN null
End of function walkdom
Function changeimagepath:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/mJkmb
function name: changeImagePath
number of ops: 21
compiled vars: !0 = $html, !1 = $dom, !2 = $root
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
20 0 E > RECV !0
22 1 NEW $3 'DOMDocument'
2 DO_FCALL 0
3 ASSIGN !1, $3
23 4 ASSIGN_OBJ !1, 'preserveWhiteSpace'
5 OP_DATA <true>
24 6 INIT_METHOD_CALL !1, 'loadHTML'
7 SEND_VAR_EX !0
8 DO_FCALL 0
25 9 FETCH_OBJ_R ~8 !1, 'documentElement'
10 ASSIGN !2, ~8
26 11 INIT_FCALL 'walkdom'
12 SEND_VAR !2
13 DO_FCALL 0
27 14 ASSIGN_OBJ !1, 'formatOutput'
15 OP_DATA <false>
28 16 INIT_METHOD_CALL !1, 'saveHTML'
17 SEND_VAR_EX !2
18 DO_FCALL 0 $12
19 > RETURN $12
29 20* > RETURN null
End of function changeimagepath
Generated using Vulcan Logic Dumper, using php 8.0.0