3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <html> <head><title></title></head> <body> <CONTENT/> </body> </html> XML; $content = "<div id='wrap'>text text text</div>"; echo implode($content,explode("<CONTENT/>",$xml));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IirLd
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xml, !1 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A%3Chead%3E%3Ctitle%3E%3C%2Ftitle%3E%3C%2Fhead%3E%0A%3Cbody%3E%0A%3CCONTENT%2F%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   10     1        ASSIGN                                                   !1, '%3Cdiv+id%3D%27wrap%27%3Etext+text+text%3C%2Fdiv%3E'
   11     2        INIT_FCALL                                               'implode'
          3        SEND_VAR                                                 !1
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%3CCONTENT%2F%3E'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1385 KiB | 17 Q