3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<p align="center"><font face="Proxima Nova Alt Th" size="21" color="#ffffff" letterSpacing="-1.000000" kerning="1"><b>YOUR</b></font></p><p align="center"><font face="Proxima Nova Alt Th" size="21" color="#ffffff" letterSpacing="-1.000000" kerning="1"><b>OFFER</b></font></p>'; $dom = new DOMDocument; $dom->loadHTML($string); $el = $dom->getElementsByTagName("font"); foreach ($el as $e) { foreach ($e->attributes as $node) { $name = $attr->nodeName; $value = $attr->nodeValue; echo "Attribute '$name' :: '$value'<br />"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 29
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 27
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 27
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 27
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/svAaL
function name:  (null)
number of ops:  31
compiled vars:  !0 = $string, !1 = $dom, !2 = $el, !3 = $e, !4 = $node, !5 = $name, !6 = $attr, !7 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Proxima+Nova+Alt+Th%22+size%3D%2221%22+color%3D%22%23ffffff%22+letterSpacing%3D%22-1.000000%22+kerning%3D%221%22%3E%3Cb%3EYOUR%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Proxima+Nova+Alt+Th%22+size%3D%2221%22+color%3D%22%23ffffff%22+letterSpacing%3D%22-1.000000%22+kerning%3D%221%22%3E%3Cb%3EOFFER%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E'
    4     1        NEW                                              $9      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $9
    5     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    6     7        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'font'
          9        DO_FCALL                                      0  $13     
         10        ASSIGN                                                   !2, $13
    7    11      > FE_RESET_R                                       $15     !2, ->29
         12    > > FE_FETCH_R                                               $15, !3, ->29
    9    13    >   FETCH_OBJ_R                                      ~16     !3, 'attributes'
         14      > FE_RESET_R                                       $17     ~16, ->27
         15    > > FE_FETCH_R                                               $17, !4, ->27
   11    16    >   FETCH_OBJ_R                                      ~18     !6, 'nodeName'
         17        ASSIGN                                                   !5, ~18
   12    18        FETCH_OBJ_R                                      ~20     !6, 'nodeValue'
         19        ASSIGN                                                   !7, ~20
   13    20        ROPE_INIT                                     5  ~23     'Attribute+%27'
         21        ROPE_ADD                                      1  ~23     ~23, !5
         22        ROPE_ADD                                      2  ~23     ~23, '%27+%3A%3A+%27'
         23        ROPE_ADD                                      3  ~23     ~23, !7
         24        ROPE_END                                      4  ~22     ~23, '%27%3Cbr+%2F%3E'
         25        ECHO                                                     ~22
    9    26      > JMP                                                      ->15
         27    >   FE_FREE                                                  $17
    7    28      > JMP                                                      ->12
         29    >   FE_FREE                                                  $15
   15    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.61 ms | 1399 KiB | 13 Q