3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement( '<DOM> <TAB id="ID1" width="30.1" height="0.5" ></TAB> <TAB id="ID2" width="15.7" height="1.8" ></TAB> </DOM>'); foreach ($xml->children() as $second_level) { echo $second_level->attributes()->id, "<br>"; echo (float)$second_level->attributes()->width * 10 . "<br>"; echo (float)$second_level->attributes()->height * 10 . "<br>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 28
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 28
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/GpqLH
function name:  (null)
number of ops:  30
compiled vars:  !0 = $xml, !1 = $second_level
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SimpleXMLElement'
    4     1        SEND_VAL_EX                                              '%3CDOM%3E%0A++%3CTAB+id%3D%22ID1%22+width%3D%2230.1%22+height%3D%220.5%22+%3E%3C%2FTAB%3E+%0A++%3CTAB+id%3D%22ID2%22+width%3D%2215.7%22+height%3D%221.8%22+%3E%3C%2FTAB%3E%0A%3C%2FDOM%3E'
          2        DO_FCALL                                      0          
    3     3        ASSIGN                                                   !0, $2
    9     4        INIT_METHOD_CALL                                         !0, 'children'
          5        DO_FCALL                                      0  $5      
          6      > FE_RESET_R                                       $6      $5, ->28
          7    > > FE_FETCH_R                                               $6, !1, ->28
   10     8    >   INIT_METHOD_CALL                                         !1, 'attributes'
          9        DO_FCALL                                      0  $7      
         10        FETCH_OBJ_R                                      ~8      $7, 'id'
         11        ECHO                                                     ~8
         12        ECHO                                                     '%3Cbr%3E'
   11    13        INIT_METHOD_CALL                                         !1, 'attributes'
         14        DO_FCALL                                      0  $9      
         15        FETCH_OBJ_R                                      ~10     $9, 'width'
         16        CAST                                          5  ~11     ~10
         17        MUL                                              ~12     ~11, 10
         18        CONCAT                                           ~13     ~12, '%3Cbr%3E'
         19        ECHO                                                     ~13
   12    20        INIT_METHOD_CALL                                         !1, 'attributes'
         21        DO_FCALL                                      0  $14     
         22        FETCH_OBJ_R                                      ~15     $14, 'height'
         23        CAST                                          5  ~16     ~15
         24        MUL                                              ~17     ~16, 10
         25        CONCAT                                           ~18     ~17, '%3Cbr%3E'
         26        ECHO                                                     ~18
    9    27      > JMP                                                      ->7
         28    >   FE_FREE                                                  $6
   13    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.92 ms | 1395 KiB | 13 Q