3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LY24V
function name:  (null)
number of ops:  25
compiled vars:  !0 = $html, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, '%3Col%3E%0A++++%3Cli%3E31%3C%2Fli%3E%0A++++%3Cli%3E32%3C%2Fli%3E%0A++++%3Cli%3E%0A++++++++%3Col%3E%0A++++++++++++%3Cli%3Efoo%3C%2Fli%3E%0A++++++++++++%3Cli%3E%0A++++++++++++++++%3Col%3E%0A++++++++++++++++++++%3Cli%3Ebar%3C%2Fli%3E%0A++++++++++++++++%3C%2Fol%3E%0A++++++++++++%3C%2Fli%3E%0A++++++++%3C%2Fol%3E%0A++++%3C%2Fli%3E%0A++++%3Cli%3E33%3C%2Fli%3E%0A++++%3Cli%3E34%3C%2Fli%3E%0A++++%3Cli%3E%0A++++++++%3Col%3E%0A++++++++++++%3Cli%3E341%3C%2Fli%3E%0A++++++++++++%3Cli%3E342%3C%2Fli%3E%0A++++++++++++%3Cli%3E343%3C%2Fli%3E%0A++++++++++++%3Cli%3E344%3C%2Fli%3E%0A++++++++++++%3Cli%3E%0A++++++++++++++++%3Col%3E%0A++++++++++++++++++++%3Cli%3E3441%3C%2Fli%3E%0A++++++++++++++++++++%3Cli%3E3442%3C%2Fli%3E%0A++++++++++++++++++++%3Cli%3E3443%3C%2Fli%3E%0A++++++++++++++++++++%3Cli%3E3444%3C%2Fli%3E%0A++++++++++++++++%3C%2Fol%3E%0A++++++++++++%3C%2Fli%3E%0A++++++++%3C%2Fol%3E%0A++++%3C%2Fli%3E%0A%3C%2Fol%3E'
   50     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   51     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              8196
          7        DO_FCALL                                      0          
   52     8        INIT_FCALL                                               'var_export'
   53     9        INIT_FCALL                                               'parseorderedlist'
         10        NEW                                              $7      'DOMXPath'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
         13        SEND_VAR                                                 $7
         14        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         15        SEND_VAL_EX                                              'ol'
         16        DO_FCALL                                      0  $9      
         17        INIT_METHOD_CALL                                         $9, 'item'
         18        SEND_VAL_EX                                              0
         19        DO_FCALL                                      0  $10     
         20        SEND_VAR                                                 $10
         21        DO_FCALL                                      0  $11     
         22        SEND_VAR                                                 $11
   52    23        DO_ICALL                                                 
   54    24      > RETURN                                                   1

Function parseorderedlist:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 29
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 29
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 28
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/LY24V
function name:  parseOrderedList
number of ops:  32
compiled vars:  !0 = $xpath, !1 = $node, !2 = $result, !3 = $child, !4 = $nodeValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN                                                   !2, <array>
    5     3        INIT_METHOD_CALL                                         !0, 'query'
          4        SEND_VAL_EX                                              'li%2Fol+%7C+li%2Ftext%28%29'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $6      
          7      > FE_RESET_R                                       $7      $6, ->29
          8    > > FE_FETCH_R                                               $7, !3, ->29
    6     9    >   FETCH_OBJ_R                                      ~8      !3, 'nodeName'
         10        IS_IDENTICAL                                             ~8, 'ol'
         11      > JMPZ                                                     ~9, ->19
    7    12    >   INIT_FCALL_BY_NAME                                       'parseOrderedList'
         13        SEND_VAR_EX                                              !0
         14        SEND_VAR_EX                                              !3
         15        DO_FCALL                                      0  $11     
         16        ASSIGN_DIM                                               !2
         17        OP_DATA                                                  $11
    6    18      > JMP                                                      ->28
    8    19    >   INIT_FCALL                                               'trim'
         20        FETCH_OBJ_R                                      ~12     !3, 'nodeValue'
         21        SEND_VAL                                                 ~12
         22        DO_ICALL                                         $13     
         23        ASSIGN                                           ~14     !4, $13
         24        IS_NOT_IDENTICAL                                         ~14, ''
         25      > JMPZ                                                     ~15, ->28
    9    26    >   ASSIGN_DIM                                               !2
         27        OP_DATA                                                  !4
    5    28    > > JMP                                                      ->8
         29    >   FE_FREE                                                  $7
   12    30      > RETURN                                                   !2
   13    31*     > RETURN                                                   null

End of function parseorderedlist

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.04 ms | 977 KiB | 16 Q