3v4l.org

run code in 500+ 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>"; $width = (float)$second_level->attributes()->width; echo $width * 10 . "<br>"; $height = (float)$second_level->attributes()->height; echo $height * 10 . "<br>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 30
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 30
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/ksChJ
function name:  (null)
number of ops:  32
compiled vars:  !0 = $xml, !1 = $second_level, !2 = $width, !3 = $height
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $4      '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'
    3     2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $4
    9     4        INIT_METHOD_CALL                                             !0, 'children'
          5        DO_FCALL                                          0  $7      
          6      > FE_RESET_R                                           $8      $7, ->30
          7    > > FE_FETCH_R                                                   $8, !1, ->30
   10     8    >   INIT_METHOD_CALL                                             !1, 'attributes'
          9        DO_FCALL                                          0  $9      
         10        FETCH_OBJ_R                                          ~10     $9, 'id'
         11        CONCAT                                               ~11     ~10, '%3Cbr%3E'
         12        ECHO                                                         ~11
   11    13        INIT_METHOD_CALL                                             !1, 'attributes'
         14        DO_FCALL                                          0  $12     
         15        FETCH_OBJ_R                                          ~13     $12, 'width'
         16        CAST                                              5  ~14     ~13
         17        ASSIGN                                                       !2, ~14
   12    18        MUL                                                  ~16     !2, 10
         19        CONCAT                                               ~17     ~16, '%3Cbr%3E'
         20        ECHO                                                         ~17
   13    21        INIT_METHOD_CALL                                             !1, 'attributes'
         22        DO_FCALL                                          0  $18     
         23        FETCH_OBJ_R                                          ~19     $18, 'height'
         24        CAST                                              5  ~20     ~19
         25        ASSIGN                                                       !3, ~20
   14    26        MUL                                                  ~22     !3, 10
         27        CONCAT                                               ~23     ~22, '%3Cbr%3E'
         28        ECHO                                                         ~23
    9    29      > JMP                                                          ->7
         30    >   FE_FREE                                                      $8
   15    31      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.75 ms | 3275 KiB | 13 Q