3v4l.org

run code in 300+ PHP versions simultaneously
<?php // load the XML file $songs = '<!--?xml version="1.0"?--> <property last_update="2019-11-28 00:00:00"> <reference_number>Lld.v. 2445</reference_number> <offering_type>RR</offering_type> <property_type>VH</property_type> <price>11500</price> <city>Marrakech</city> <community>Rte de Casablanca</community> <title_en>magnifique villa a louer</title_en> <description_en> Dans une résidence sécurisée, villa de 300m² sur deux niveaux  avec jardin prive comprenant un salon/séjour coin cheminée  donnant sur  jardin, 4 chambres  avec placards, une suite parentale avec SDB, cuisine et  toilettes invités. </description_en> <size>300</size> <bedroom>4</bedroom> <bathroom>4</bathroom> <agent> <name>Mme. Fadwa Driwa</name> <email>fadwa@palm-real-estate.net</email> <phone>+212 661 791 163</phone> </agent> <furnished>No</furnished> <photo> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0056.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0055.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0054.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0053.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0052.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0051.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0050.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0049.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0048.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0047.jpg</url> <url last_update="2019-11-28 00:00:00" watermark="no">https://www.immobilier-a-marrakech.com/images/produits/amg-20191126-wi0057.jpg</url> <test>test</test> </photo> </property>'; $xml = simplexml_load_string($songs); echo json_encode($xml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dJ5Rg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $songs, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%3C%21--%3Fxml+version%3D%221.0%22%3F--%3E%0A%3Cproperty+last_update%3D%222019-11-28+00%3A00%3A00%22%3E%0A++%3Creference_number%3ELld.v.+2445%3C%2Freference_number%3E%0A++%3Coffering_type%3ERR%3C%2Foffering_type%3E%0A++%3Cproperty_type%3EVH%3C%2Fproperty_type%3E%0A++%3Cprice%3E11500%3C%2Fprice%3E%0A++%3Ccity%3EMarrakech%3C%2Fcity%3E%0A++%3Ccommunity%3ERte+de+Casablanca%3C%2Fcommunity%3E%0A++%3Ctitle_en%3Emagnifique+villa+a+louer%3C%2Ftitle_en%3E%0A++%3Cdescription_en%3E+Dans+une+r%C3%A9sidence+s%C3%A9curis%C3%A9e%2C+villa+de+300m%C2%B2+sur+deux+niveaux+%C2%A0avec+jardin+prive+comprenant+un+salon%2Fs%C3%A9jour+coin+chemin%C3%A9e+%C2%A0donnant+sur+%C2%A0jardin%2C+4%C2%A0chambres+%C2%A0avec+placards%2C+une+suite+parentale+avec+SDB%2C+cuisine+et+%C2%A0toilettes+invit%C3%A9s.+%3C%2Fdescription_en%3E%0A++%3Csize%3E300%3C%2Fsize%3E%0A++%3Cbedroom%3E4%3C%2Fbedroom%3E%0A++%3Cbathroom%3E4%3C%2Fbathroom%3E%0A++%3Cagent%3E%0A++++%3Cname%3EMme.+Fadwa+Driwa%3C%2Fname%3E%0A++++%3Cemail%3Efadwa%40palm-real-estate.net%3C%2Femail%3E%0A++++%3Cphone%3E%2B212+661+791+163%3C%2Fphone%3E%0A++%3C%2Fagent%3E%0A++%3Cfurnished%3ENo%3C%2Ffurnished%3E%0A++%3Cphoto%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0056.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0055.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0054.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0053.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0052.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0051.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0050.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0049.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0048.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0047.jpg%3C%2Furl%3E%0A++++%3Curl+last_update%3D%222019-11-28+00%3A00%3A00%22+watermark%3D%22no%22%3Ehttps%3A%2F%2Fwww.immobilier-a-marrakech.com%2Fimages%2Fproduits%2Famg-20191126-wi0057.jpg%3C%2Furl%3E%0A++++%0A++++%3Ctest%3Etest%3C%2Ftest%3E%0A++%3C%2Fphoto%3E%0A%3C%2Fproperty%3E'
   40     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   41     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.45 ms | 1405 KiB | 17 Q