Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/OkbQW
function name: (null)
number of ops: 15
compiled vars: !0 = $html, !1 = $dom
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
65 0 E > ASSIGN !0, '%0A%3Ch3%3EHTML+Table+Example%3C%2Fh3%3E%0A%3Cdiv%3E%0A%3Ctable+id%3D%22customers%22%3E%0A++%3Ctr%3E%0A++++%3Cth%3ECompany%3C%2Fth%3E%0A++++%3Cth%3EContact%3C%2Fth%3E%0A++++%3Cth%3ECountry%3C%2Fth%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E%0A++++%3Ctd%3EAlfreds+Futterkiste%3C%2Ftd%3E%0A++++%3Ctd%3EMaria+Anders%3C%2Ftd%3E%0A++++%3Ctd%3EGermany%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E%0A++++%3Ctd%3ECentro+comercial+Moctezuma%3C%2Ftd%3E%0A++++%3Ctd%3EFrancisco+Chang%3C%2Ftd%3E%0A++++%3Ctd%3EMexico%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E%0A++++%3Ctd%3EErnst+Handel%3C%2Ftd%3E%0A++++%3Ctd%3ERoland+Mendel%3C%2Ftd%3E%0A++++%3Ctd%3EAustria%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E%0A++++%3Ctd%3EIsland+Trading%3C%2Ftd%3E%0A++++%3Ctd%3EHelen+Bennett%3C%2Ftd%3E%0A++++%3Ctd%3EUK%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E%0A++++%3Ctd%3ELaughing+Bacchus+Winecellars%3C%2Ftd%3E%0A++++%3Ctd%3EYoshi+Tannamuri%3C%2Ftd%3E%0A++++%3Ctd%3ECanada%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E%0A++++%3Ctd%3EMagazzini+Alimentari+Riuniti%3C%2Ftd%3E%0A++++%3Ctd%3EGiovanni+Rovelli%3C%2Ftd%3E%0A++++%3Ctd%3EItaly%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A%3C%2Fdiv%3E'
107 1 NEW $3 'DOMExtract'
2 DO_FCALL 0
3 ASSIGN !1, $3
108 4 INIT_METHOD_CALL !1, 'setSource'
5 SEND_VAR_EX !0
6 DO_FCALL 0
110 7 ECHO '%0A%3Ctable+cellspacing%3D%220%22+cellpadding%3D%223%22+border%3D%220%22+width%3D%22100%25%22%3E'
113 8 INIT_METHOD_CALL !1, 'getInnerHTML'
9 SEND_VAL_EX 'table'
10 SEND_VAL_EX 'id%3Dcustomers'
11 DO_FCALL 0 $7
12 ECHO $7
116 13 ECHO '%3C%2Ftable%3E'
14 > RETURN 1
Class DOMExtract:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/OkbQW
function name: __construct
number of ops: 10
compiled vars: none
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
10 0 E > INIT_FCALL 'libxml_use_internal_errors'
1 SEND_VAL <true>
2 DO_ICALL
11 3 ASSIGN_OBJ 'preserveWhiteSpace'
4 OP_DATA <false>
12 5 ASSIGN_OBJ 'strictErrorChecking'
6 OP_DATA <false>
13 7 ASSIGN_OBJ 'formatOutput'
8 OP_DATA <true>
14 9 > RETURN null
End of function __construct
Function setsource:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/OkbQW
function name: setSource
number of ops: 6
compiled vars: !0 = $source
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
16 0 E > RECV !0
18 1 ASSIGN_OBJ 'source'
2 OP_DATA !0
19 3 FETCH_THIS ~2
4 > RETURN ~2
20 5* > RETURN null
End of function setsource
Function getinnerhtml:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 58
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 58
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 47
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 46
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 42
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
Branch analysis from position: 46
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 53
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
Branch analysis from position: 53
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
filename: /in/OkbQW
function name: getInnerHTML
number of ops: 61
compiled vars: !0 = $tag, !1 = $id, !2 = $nodeValue, !3 = $tmp, !4 = $ret, !5 = $v, !6 = $attr
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
22 0 E > RECV !0
1 RECV_INIT !1 null
2 RECV_INIT !2 <false>
24 3 ISSET_ISEMPTY_PROP_OBJ 'source'
4 > JMPZ ~7, ->9
25 5 > NEW $8 'Exception'
6 SEND_VAL_EX 'Error%3A+Missing+%24this-%3Esource%2C+use+setSource%28%29+first'
7 DO_FCALL 0
8 > THROW 0 $8
28 9 > INIT_METHOD_CALL 'loadHTML'
10 CHECK_FUNC_ARG
11 FETCH_OBJ_FUNC_ARG $10 'source'
12 SEND_FUNC_ARG $10
13 DO_FCALL 0
29 14 INIT_METHOD_CALL 'getElementsByTagName'
15 SEND_VAR_EX !0
16 DO_FCALL 0 $12
17 ASSIGN !3, $12
30 18 ASSIGN !4, null
31 19 > FE_RESET_R $15 !3, ->58
20 > > FE_FETCH_R $15, !5, ->58
32 21 > TYPE_CHECK 1020 !1
22 > JMPZ ~16, ->47
33 23 > INIT_FCALL 'explode'
24 SEND_VAL '%3D'
25 SEND_VAR !1
26 DO_ICALL $17
27 ASSIGN !6, $17
34 28 INIT_METHOD_CALL !5, 'getAttribute'
29 CHECK_FUNC_ARG
30 FETCH_DIM_FUNC_ARG $19 !6, 0
31 SEND_FUNC_ARG $19
32 DO_FCALL 0 $20
33 FETCH_DIM_R ~21 !6, 1
34 IS_EQUAL $20, ~21
35 > JMPZ ~22, ->46
35 36 > IS_EQUAL !2, <true>
37 > JMPZ ~23, ->42
36 38 > FETCH_OBJ_R ~24 !5, 'nodeValue'
39 FRAMELESS_ICALL_1 trim ~25 ~24
40 ASSIGN_OP 8 !4, ~25
35 41 > JMP ->46
38 42 > INIT_METHOD_CALL 'innerHTML'
43 SEND_VAR_EX !5
44 DO_FCALL 0 $27
45 ASSIGN_OP 8 !4, $27
32 46 > > JMP ->57
42 47 > IS_EQUAL !2, <true>
48 > JMPZ ~29, ->53
43 49 > FETCH_OBJ_R ~30 !5, 'nodeValue'
50 FRAMELESS_ICALL_1 trim ~31 ~30
51 ASSIGN_OP 8 !4, ~31
42 52 > JMP ->57
45 53 > INIT_METHOD_CALL 'innerHTML'
54 SEND_VAR_EX !5
55 DO_FCALL 0 $33
56 ASSIGN_OP 8 !4, $33
31 57 > > JMP ->20
58 > FE_FREE $15
49 59 > RETURN !4
50 60* > RETURN null
End of function getinnerhtml
Function innerhtml:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename: /in/OkbQW
function name: innerHTML
number of ops: 23
compiled vars: !0 = $dom, !1 = $ret, !2 = $v, !3 = $tmp
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
52 0 E > RECV !0
54 1 ASSIGN !1, ''
55 2 FETCH_OBJ_R ~5 !0, 'childNodes'
3 > FE_RESET_R $6 ~5, ->20
4 > > FE_FETCH_R $6, !2, ->20
56 5 > NEW $7 'DOMDocument'
6 DO_FCALL 0
7 ASSIGN !3, $7
57 8 INIT_METHOD_CALL !3, 'appendChild'
9 INIT_METHOD_CALL !3, 'importNode'
10 SEND_VAR_EX !2
11 SEND_VAL_EX <true>
12 DO_FCALL 0 $10
13 SEND_VAR_NO_REF_EX $10
14 DO_FCALL 0
58 15 INIT_METHOD_CALL !3, 'saveHTML'
16 DO_FCALL 0 $12
17 FRAMELESS_ICALL_1 trim ~13 $12
18 ASSIGN_OP 8 !1, ~13
55 19 > JMP ->4
20 > FE_FREE $6
60 21 > RETURN !1
61 22* > RETURN null
End of function innerhtml
End of class DOMExtract.
Generated using Vulcan Logic Dumper, using php 8.5.0