3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr="<properties> <property>name</property><value>john</value> <property>surname</property><value>wayne</value> <property>age</property><value>33</value> <property>blaaa</property><value>blaa</value> </properties>"; $xml = simplexml_load_string($xmlstr); $prop = $xml->xpath('//property'); $value = $xml->xpath('//value'); for ($i=0;$prop[$i];$i++) { echo $prop[$i].": ".$value[$i]."<br />";; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
Branch analysis from position: 15
filename:       /in/SV9Ns
function name:  (null)
number of ops:  25
compiled vars:  !0 = $xmlstr, !1 = $xml, !2 = $prop, !3 = $value, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cproperties%3E%0A%3Cproperty%3Ename%3C%2Fproperty%3E%3Cvalue%3Ejohn%3C%2Fvalue%3E%0A%3Cproperty%3Esurname%3C%2Fproperty%3E%3Cvalue%3Ewayne%3C%2Fvalue%3E%0A%3Cproperty%3Eage%3C%2Fproperty%3E%3Cvalue%3E33%3C%2Fvalue%3E%0A%3Cproperty%3Eblaaa%3C%2Fproperty%3E%3Cvalue%3Eblaa%3C%2Fvalue%3E%0A%3C%2Fproperties%3E'
   10     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   12     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2F%2Fproperty'
          7        DO_FCALL                                      0  $8      
          8        ASSIGN                                                   !2, $8
   13     9        INIT_METHOD_CALL                                         !1, 'xpath'
         10        SEND_VAL_EX                                              '%2F%2Fvalue'
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !3, $10
   15    13        ASSIGN                                                   !4, 0
         14      > JMP                                                      ->22
   16    15    >   FETCH_DIM_R                                      ~13     !2, !4
         16        CONCAT                                           ~14     ~13, '%3A+'
         17        FETCH_DIM_R                                      ~15     !3, !4
         18        CONCAT                                           ~16     ~14, ~15
         19        CONCAT                                           ~17     ~16, '%3Cbr+%2F%3E'
         20        ECHO                                                     ~17
   15    21        PRE_INC                                                  !4
         22    >   FETCH_DIM_R                                      ~19     !2, !4
         23      > JMPNZ                                                    ~19, ->15
   17    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.62 ms | 1396 KiB | 15 Q