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 = 28
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 39
Branch analysis from position: 31
2 jumps found. (Code = 77) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
2 jumps found. (Code = 78) Position 1 = 34, Position 2 = 38
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
Branch analysis from position: 39
Branch analysis from position: 7
filename: /in/mJkmb
function name: walkDOM
number of ops: 40
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 ->39
8 10 > FETCH_OBJ_R ~6 !0, 'nodeName'
11 IS_EQUAL ~6, 'img'
12 > JMPZ ~7, ->28
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 FETCH_OBJ_R ~11 !0, 'attributes'
19 INIT_METHOD_CALL ~11, 'getNamedItem'
20 SEND_VAL_EX 'src'
21 DO_FCALL 0 $12
22 FETCH_OBJ_R ~13 $12, 'nodeValue'
23 FRAMELESS_ICALL_3 str_replace ~14 'desktop-img', 'mobile-img'
24 OP_DATA ~13
25 ASSIGN_OBJ $9, 'nodeValue'
26 OP_DATA ~14
8 27 > JMP ->39
12 28 > INIT_METHOD_CALL !0, 'hasChildNodes'
29 DO_FCALL 0 $15
30 > JMPZ $15, ->39
14 31 > FETCH_OBJ_R ~16 !0, 'childNodes'
32 > FE_RESET_R $17 ~16, ->38
33 > > FE_FETCH_R $17, !1, ->38
16 34 > INIT_FCALL_BY_NAME 'walkDOM'
35 SEND_VAR_EX !1
36 DO_FCALL 0
14 37 > JMP ->33
38 > FE_FREE $17
19 39 > > 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.5.0