3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=<<<XML <data> <versions> <version> <n>0.1.0</n> <changes>First Public Release</changes> <note>This is a Beta</note> </version> </versions> <servers> </servers> </data> XML; $xml=simplexml_load_string($str); $main_server = $xml->servers->xpath('//server[@ip="' . $serverIP . '"][@port="' . $serverPort . '"]')[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tdQjP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $xml, !2 = $main_server, !3 = $serverIP, !4 = $serverPort
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cdata%3E%0A++++%3Cversions%3E%0A++++++++%3Cversion%3E%0A%09%09%09%3Cn%3E0.1.0%3C%2Fn%3E%0A%09%09%09%3Cchanges%3EFirst+Public+Release%3C%2Fchanges%3E%0A%09%09%09%3Cnote%3EThis+is+a+Beta%3C%2Fnote%3E%0A%09%09%3C%2Fversion%3E%0A++++%3C%2Fversions%3E%0A++++%3Cservers%3E%0A++++%3C%2Fservers%3E%0A%3C%2Fdata%3E'
   15     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   16     5        FETCH_OBJ_R                                      ~8      !1, 'servers'
          6        INIT_METHOD_CALL                                         ~8, 'xpath'
          7        CONCAT                                           ~9      '%2F%2Fserver%5B%40ip%3D%22', !3
          8        CONCAT                                           ~10     ~9, '%22%5D%5B%40port%3D%22'
          9        CONCAT                                           ~11     ~10, !4
         10        CONCAT                                           ~12     ~11, '%22%5D'
         11        SEND_VAL_EX                                              ~12
         12        DO_FCALL                                      0  $13     
         13        FETCH_DIM_R                                      ~14     $13, 0
         14        ASSIGN                                                   !2, ~14
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.58 ms | 1395 KiB | 15 Q