Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/OmMhU function name: (null) number of ops: 11 compiled vars: !0 = $domdocu, !1 = $parser line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 3 0 E > DECLARE_CLASS 'myparser' 94 1 NEW $2 'DomDocument' 2 DO_FCALL 0 3 ASSIGN !0, $2 95 4 INIT_METHOD_CALL !0, 'loadHTML' 5 SEND_VAL_EX '%0A%3Chtml%3E%0A%3Chead%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A++++%3Cdiv+id%3D%22first%22%3E%0A++++%25ELEMENT%25%0A++++%3C%2Fdiv%3E%0A++++%3Cdiv+class%3D%22second%22%3E%0A++++++++%25ELEMENT%25%0A++++++++%3Cdiv+class%3D%22third%22%3E%0A++++++++%25ELEMENT%25%0A++++++++%3C%2Fdiv%3E%0A++++%3C%2Fdiv%3E%0A++++%3Cdiv+class%3D%22fourth%22%3E%0A++++%25ELEMENT%25%0A++++%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A' 6 DO_FCALL 0 115 7 NEW $6 'MyParser' 8 DO_FCALL 0 9 ASSIGN !1, $6 10 > RETURN 1 Function %00%7Bclosure%7D%2Fin%2FOmMhU%3A22%240: Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 36 Branch analysis from position: 11 2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 36 Branch analysis from position: 12 2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 35 Branch analysis from position: 20 1 jumps found. (Code = 42) Position 1 = 11 Branch analysis from position: 11 Branch analysis from position: 35 Branch analysis from position: 36 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 36 filename: /in/OmMhU function name: {closure} number of ops: 38 compiled vars: !0 = $node, !1 = $varName, !2 = $newTextNode, !3 = $textNodes, !4 = $textNode, !5 = $pos, !6 = $newNode line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 22 0 E > RECV !0 1 BIND_STATIC !1 2 BIND_STATIC !2 24 3 INIT_FCALL 'array_filter' 4 FETCH_OBJ_R ~7 !0, 'childNodes' 5 SEND_VAL ~7 6 DECLARE_LAMBDA_FUNCTION '%00%7Bclosure%7D%2Fin%2FOmMhU%3A24%241' 26 7 SEND_VAL ~8 8 DO_ICALL $9 24 9 ASSIGN !3, $9 27 10 > FE_RESET_R $11 !3, ->36 11 > > FE_FETCH_R $11, !4, ->36 29 12 > INIT_FCALL 'strpos' 13 FETCH_OBJ_R ~12 !4, 'nodeValue' 14 SEND_VAL ~12 15 SEND_VAR !1 16 DO_ICALL $13 17 ASSIGN !5, $13 30 18 TYPE_CHECK 1018 !5 19 > JMPZ ~15, ->35 32 20 > INIT_METHOD_CALL !4, 'splitText' 21 SEND_VAR_EX !5 22 DO_FCALL 0 $16 23 ASSIGN !6, $16 33 24 INIT_FCALL 'substr' 25 FETCH_OBJ_R ~19 !6, 'nodeValue' 26 SEND_VAL ~19 27 STRLEN ~20 !1 28 SEND_VAL ~20 29 DO_ICALL $21 30 ASSIGN_OBJ !6, 'nodeValue' 31 OP_DATA $21 35 32 INIT_METHOD_CALL !6, 'insertBefore' 33 SEND_VAR_EX !2 34 DO_FCALL 0 27 35 > > JMP ->11 36 > FE_FREE $11 38 37 > RETURN null End of function %00%7Bclosure%7D%2Fin%2FOmMhU%3A22%240 Function %00%7Bclosure%7D%2Fin%2FOmMhU%3A24%241: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/OmMhU function name: {closure} number of ops: 5 compiled vars: !0 = $node line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 24 0 E > RECV !0 25 1 FETCH_OBJ_R ~1 !0, 'nodeType' 2 IS_IDENTICAL ~2 ~1, 3 3 > RETURN ~2 26 4* > RETURN null End of function %00%7Bclosure%7D%2Fin%2FOmMhU%3A24%241 Function %00%7Bclosure%7D%2Fin%2FOmMhU%3A62%242: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/OmMhU function name: {closure} number of ops: 8 compiled vars: !0 = $elementOfDom, !1 = $newnode line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 62 0 E > RECV !0 1 BIND_STATIC !1 64 2 BEGIN_SILENCE ~2 3 INIT_METHOD_CALL !0, 'appendChild' 4 SEND_VAR_EX !1 5 DO_FCALL 0 6 END_SILENCE ~2 65 7 > RETURN null End of function %00%7Bclosure%7D%2Fin%2FOmMhU%3A62%242 Class MyParser: Function __construct: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/OmMhU function name: __construct number of ops: 4 compiled vars: !0 = $domdoc line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 6 0 E > RECV !0 7 1 ASSIGN_OBJ 'domdoc' 2 OP_DATA !0 8 3 > RETURN null End of function __construct Function __tostring: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/OmMhU function name: __toString number of ops: 7 compiled vars: none line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 12 0 E > FETCH_OBJ_R ~0 'domdoc' 1 INIT_METHOD_CALL ~0, 'saveHTML' 2 DO_FCALL 0 $1 3 VERIFY_RETURN_TYPE $1 4 > RETURN $1 13 5* VERIFY_RETURN_TYPE 6* > RETURN null End of function __tostring Function replacevariableinside: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/OmMhU function name: replaceVariableInside number of ops: 21 compiled vars: !0 = $varName, !1 = $text, !2 = $idType, !3 = $idValue, !4 = $nodes, !5 = $newTextNode line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 16 0 E > RECV !0 1 RECV !1 2 RECV !2 3 RECV !3 18 4 INIT_METHOD_CALL 'getNodes' 5 SEND_VAR_EX !2 6 SEND_VAR_EX !3 7 DO_FCALL 0 $6 8 ASSIGN !4, $6 20 9 INIT_METHOD_CALL 'getNodeFromText' 10 SEND_VAR_EX !1 11 DO_FCALL 0 $8 12 ASSIGN !5, $8 22 13 INIT_FCALL 'array_map' 14 DECLARE_LAMBDA_FUNCTION '%00%7Bclosure%7D%2Fin%2FOmMhU%3A22%240' 15 BIND_LEXICAL ~10, !0 16 BIND_LEXICAL ~10, !5 38 17 SEND_VAL ~10 18 SEND_VAR !4 19 DO_ICALL 39 20 > RETURN null End of function replacevariableinside Function getnodes: Finding entry points Branch analysis from position: 0 4 jumps found. (Code = 188) Position 1 = 8, Position 2 = 15, Position 3 = 28, Position 4 = 3 Branch analysis from position: 8 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 15 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 28 1 jumps found. (Code = 42) Position 1 = 29 Branch analysis from position: 29 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 3 2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 8 Branch analysis from position: 5 2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 15 Branch analysis from position: 7 1 jumps found. (Code = 42) Position 1 = 28 Branch analysis from position: 28 Branch analysis from position: 15 Branch analysis from position: 8 filename: /in/OmMhU function name: getNodes number of ops: 30 compiled vars: !0 = $idType, !1 = $idValue line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 41 0 E > RECV !0 1 RECV !1 43 2 > SWITCH_STRING !0, [ 'id':->8, 'class':->15, ], ->28 44 3 > IS_EQUAL !0, 'id' 4 > JMPNZ ~2, ->8 49 5 > IS_EQUAL !0, 'class' 6 > JMPNZ ~2, ->15 7 > > JMP ->28 46 8 > FETCH_OBJ_R ~3 'domdoc' 9 INIT_METHOD_CALL ~3, 'getElementById' 10 SEND_VAR_EX !1 11 DO_FCALL 0 $4 12 INIT_ARRAY ~5 $4 13 > RETURN ~5 48 14* JMP ->29 50 15 > NEW $6 'DOMXPath' 16 CHECK_FUNC_ARG 17 FETCH_OBJ_FUNC_ARG $7 'domdoc' 18 SEND_FUNC_ARG $7 19 DO_FCALL 0 51 20 INIT_METHOD_CALL $6, 'query' 21 ROPE_INIT 3 ~10 '%2F%2F%2A%5Bcontains%28concat%28%27+%27%2C+normalize-space%28%40class%29%2C+%27+%27%29%2C+%27+' 22 ROPE_ADD 1 ~10 ~10, !1 23 ROPE_END 2 ~9 ~10, '+%27%29%5D' 24 SEND_VAL_EX ~9 25 DO_FCALL 0 $12 26 > RETURN $12 52 27* JMP ->29 54 28 > > JMP ->29 56 29 > > RETURN null End of function getnodes Function insertinto: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/OmMhU function name: insertInto number of ops: 18 compiled vars: !0 = $idType, !1 = $id, !2 = $text, !3 = $newnode line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 58 0 E > RECV !0 1 RECV !1 2 RECV !2 60 3 INIT_METHOD_CALL 'getNodeFromText' 4 SEND_VAR_EX !2 5 DO_FCALL 0 $4 6 ASSIGN !3, $4 62 7 INIT_FCALL 'array_map' 8 DECLARE_LAMBDA_FUNCTION '%00%7Bclosure%7D%2Fin%2FOmMhU%3A62%242' 9 BIND_LEXICAL ~6, !3 65 10 SEND_VAL ~6 11 INIT_METHOD_CALL 'getNodes' 12 SEND_VAR_EX !0 13 SEND_VAR_EX !1 14 DO_FCALL 0 $7 15 SEND_VAR $7 16 DO_ICALL 66 17 > RETURN null End of function insertinto Function getnodefromtext: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 42) Position 1 = 19 Branch analysis from position: 19 2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 31 Branch analysis from position: 20 1 jumps found. (Code = 42) Position 1 = 38 Branch analysis from position: 38 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 31 1 jumps found. (Code = 62) Position 1 = -2 Found catch point at position: 17 Branch analysis from position: 17 2 jumps found. (Code = 107) Position 1 = 18, Position 2 = -2 Branch analysis from position: 18 2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 31 Branch analysis from position: 20 Branch analysis from position: 31 filename: /in/OmMhU function name: getNodeFromText number of ops: 40 compiled vars: !0 = $text, !1 = $tmp, !2 = $textDocumentRes, !3 = $e, !4 = $newnode line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 68 0 E > RECV !0 70 1 INIT_FCALL 'html_entity_decode' 2 SEND_VAR !0 3 DO_ICALL $5 4 ASSIGN !0, $5 73 5 NEW $7 'DOMDocument' 6 DO_FCALL 0 7 ASSIGN !1, $7 74 8 BEGIN_SILENCE ~10 9 INIT_METHOD_CALL !1, 'loadHTML' 10 CONCAT ~11 '%3C%3Fxml+encoding%3D%22utf-8%22+%3F%3E%3Cspan%3E', !0 11 CONCAT ~12 ~11, '%3C%2Fspan%3E' 12 SEND_VAL_EX ~12 13 DO_FCALL 0 $13 14 END_SILENCE ~10 15 ASSIGN !2, $13 16 > JMP ->19 76 17 E > > CATCH last 'Exception' 78 18 > ASSIGN !2, <false> 80 19 > > JMPZ !2, ->31 82 20 > FETCH_OBJ_R ~16 'domdoc' 21 INIT_METHOD_CALL ~16, 'importNode' 22 CHECK_FUNC_ARG 23 FETCH_OBJ_FUNC_ARG $17 !1, 'documentElement' 24 FETCH_OBJ_FUNC_ARG $18 $17, 'firstChild' 25 FETCH_OBJ_FUNC_ARG $19 $18, 'firstChild' 26 SEND_FUNC_ARG $19 27 SEND_VAL_EX <true> 28 DO_FCALL 0 $20 29 ASSIGN !4, $20 30 > JMP ->38 86 31 > FETCH_OBJ_R ~22 'domdoc' 32 INIT_METHOD_CALL ~22, 'createTextNode' 33 SEND_VAR_EX !0 34 DO_FCALL 0 $23 35 ASSIGN !4, $23 87 36 ASSIGN_OBJ !4, 'nodeValue' 37 OP_DATA !0 90 38 > > RETURN !4 91 39* > RETURN null End of function getnodefromtext End of class MyParser.
Generated using Vulcan Logic Dumper, using php 8.0.0