3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xmlContent = '<processen> <proces id="B1816"> <velden> <kernomschrijving>activiteit aanleggen alarminstallatie</kernomschrijving> <model-kernomschrijving>aanleggen alarminstallatie</model-kernomschrijving> <naam>Het beoordelen van een alarminstallatie</naam> </velden> </proces> </processen>'; $xml = simplexml_load_string($xmlContent); $proces = $xml->xpath('//processen/proces[@id="B1816"]'); echo $proces[0]->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9coll
function name:  (null)
number of ops:  14
compiled vars:  !0 = $xmlContent, !1 = $xml, !2 = $proces
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Cprocessen%3E%0A+++%3Cproces+id%3D%22B1816%22%3E%0A+++++++%3Cvelden%3E%0A++++++++++++%3Ckernomschrijving%3Eactiviteit+aanleggen+alarminstallatie%3C%2Fkernomschrijving%3E%0A++++++++++++%3Cmodel-kernomschrijving%3Eaanleggen+alarminstallatie%3C%2Fmodel-kernomschrijving%3E%0A++++++++++++%3Cnaam%3EHet+beoordelen+van+een+alarminstallatie%3C%2Fnaam%3E%0A+++++++%3C%2Fvelden%3E%0A+++%3C%2Fproces%3E%0A%3C%2Fprocessen%3E'
   13     1        INIT_FCALL                                                   'simplexml_load_string'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
   14     5        INIT_METHOD_CALL                                             !1, 'xpath'
          6        SEND_VAL_EX                                                  '%2F%2Fprocessen%2Fproces%5B%40id%3D%22B1816%22%5D'
          7        DO_FCALL                                          0  $6      
          8        ASSIGN                                                       !2, $6
   15     9        FETCH_DIM_R                                          ~8      !2, 0
         10        INIT_METHOD_CALL                                             ~8, 'asXML'
         11        DO_FCALL                                          0  $9      
         12        ECHO                                                         $9
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
150.3 ms | 1941 KiB | 14 Q