3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_string("<xml><number>0</number><number>1</number></xml>"); $i = (int) 1; $d = (float) 1; $xml->number[$d] = 999; echo $xml->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kET56
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xml, !1 = $i, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3Cxml%3E%3Cnumber%3E0%3C%2Fnumber%3E%3Cnumber%3E1%3C%2Fnumber%3E%3C%2Fxml%3E'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        CAST                                          4  ~5      1
          5        ASSIGN                                                   !1, ~5
    6     6        CAST                                          5  ~7      1
          7        ASSIGN                                                   !2, ~7
    8     8        FETCH_OBJ_W                                      $9      !0, 'number'
          9        ASSIGN_DIM                                               $9, !2
         10        OP_DATA                                                  999
   10    11        INIT_METHOD_CALL                                         !0, 'asXML'
         12        DO_FCALL                                      0  $11     
         13        ECHO                                                     $11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
266.93 ms | 1009 KiB | 14 Q