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 = 62
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 62
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 49
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 48
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 44
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
Branch analysis from position: 48
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 57
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 62
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 62
filename: /in/OkbQW
function name: getInnerHTML
number of ops: 65
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, ->62
20 > > FE_FETCH_R $15, !5, ->62
32 21 > TYPE_CHECK 1020 !1
22 > JMPZ ~16, ->49
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, ->48
35 36 > BOOL ~23 !2
37 > JMPZ ~23, ->44
36 38 > INIT_FCALL 'trim'
39 FETCH_OBJ_R ~24 !5, 'nodeValue'
40 SEND_VAL ~24
41 DO_ICALL $25
42 ASSIGN_OP 8 !4, $25
35 43 > JMP ->48
38 44 > INIT_METHOD_CALL 'innerHTML'
45 SEND_VAR_EX !5
46 DO_FCALL 0 $27
47 ASSIGN_OP 8 !4, $27
32 48 > > JMP ->61
42 49 > BOOL ~29 !2
50 > JMPZ ~29, ->57
43 51 > INIT_FCALL 'trim'
52 FETCH_OBJ_R ~30 !5, 'nodeValue'
53 SEND_VAL ~30
54 DO_ICALL $31
55 ASSIGN_OP 8 !4, $31
42 56 > JMP ->61
45 57 > INIT_METHOD_CALL 'innerHTML'
58 SEND_VAR_EX !5
59 DO_FCALL 0 $33
60 ASSIGN_OP 8 !4, $33
31 61 > > JMP ->20
62 > FE_FREE $15
49 63 > RETURN !4
50 64* > 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 = 22
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 22
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename: /in/OkbQW
function name: innerHTML
number of ops: 25
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, ->22
4 > > FE_FETCH_R $6, !2, ->22
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_FCALL 'trim'
16 INIT_METHOD_CALL !3, 'saveHTML'
17 DO_FCALL 0 $12
18 SEND_VAR $12
19 DO_ICALL $13
20 ASSIGN_OP 8 !1, $13
55 21 > JMP ->4
22 > FE_FREE $6
60 23 > RETURN !1
61 24* > RETURN null
End of function innerhtml
End of class DOMExtract.
Generated using Vulcan Logic Dumper, using php 8.0.0