3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0" encoding="ISO-8859-1" ?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Latest Filings - Thu, 02 May 2024 15:27:03 EDT</title> <link rel="alternate" href="/cgi-bin/browse-edgar?action=getcurrent"/> <link rel="self" href="/cgi-bin/browse-edgar?action=getcurrent"/> <id>https://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent</id> <author><name>Webmaster</name><email>webmaster@sec.gov</email></author> <updated>2024-05-02T15:27:03-04:00</updated> <entry> <title>8-K - KKR FS Income Trust (0001930679) (Filer)</title> <link rel="alternate" type="text/html" href="https://www.sec.gov/Archives/edgar/data/1930679/000110465924056303/0001104659-24-056303-index.htm"/> <summary type="html"> &lt;b&gt;Filed:&lt;/b&gt; 2024-05-02 &lt;b&gt;AccNo:&lt;/b&gt; 0001104659-24-056303 &lt;b&gt;Size:&lt;/b&gt; 193 KB &lt;br&gt;Item 8.01: Other Events &lt;br&gt;Item 9.01: Financial Statements and Exhibits </summary> <updated>2024-05-02T15:19:50-04:00</updated> <category scheme="https://www.sec.gov/" label="form type" term="8-K"/> <id>urn:tag:sec.gov,2008:accession-number=0001104659-24-056303</id> </entry> <entry> <title>8-K - Catalyst Bancorp, Inc. (0001849867) (Filer)</title> <link rel="alternate" type="text/html" href="https://www.sec.gov/Archives/edgar/data/1849867/000184986724000015/0001849867-24-000015-index.htm"/> <summary type="html"> &lt;b&gt;Filed:&lt;/b&gt; 2024-05-02 &lt;b&gt;AccNo:&lt;/b&gt; 0001849867-24-000015 &lt;b&gt;Size:&lt;/b&gt; 1 MB &lt;br&gt;Item 2.02: Results of Operations and Financial Condition &lt;br&gt;Item 5.02: Departure of Directors or Certain Officers; Election of Directors; Appointment of Certain Officers: Compensatory Arrangements of Certain Officers &lt;br&gt;Item 7.01: Regulation FD Disclosure &lt;br&gt;Item 9.01: Financial Statements and Exhibits </summary> <updated>2024-05-02T15:19:06-04:00</updated> <category scheme="https://www.sec.gov/" label="form type" term="8-K"/> <id>urn:tag:sec.gov,2008:accession-number=0001849867-24-000015</id> </entry> XML; $xml = str_replace('<summary type="html">', '<description><![CDATA[', $xml); $xml = str_replace('</summary>', ']]></description>', $xml); $xml .= '</feed>'; //echo $xml; var_export(simplexml_load_string($xml));
Output for 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
\SimpleXMLElement::__set_state(array( 'title' => 'Latest Filings - Thu, 02 May 2024 15:27:03 EDT', 'link' => array ( 0 => \SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'alternate', 'href' => '/cgi-bin/browse-edgar?action=getcurrent', ), )), 1 => \SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'self', 'href' => '/cgi-bin/browse-edgar?action=getcurrent', ), )), ), 'id' => 'https://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent', 'author' => \SimpleXMLElement::__set_state(array( 'name' => 'Webmaster', 'email' => 'webmaster@sec.gov', )), 'updated' => '2024-05-02T15:27:03-04:00', 'entry' => array ( 0 => \SimpleXMLElement::__set_state(array( 'title' => '8-K - KKR FS Income Trust (0001930679) (Filer)', 'link' => \SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'alternate', 'type' => 'text/html', 'href' => 'https://www.sec.gov/Archives/edgar/data/1930679/000110465924056303/0001104659-24-056303-index.htm', ), )), 'description' => \SimpleXMLElement::__set_state(array( )), 'updated' => '2024-05-02T15:19:50-04:00', 'category' => \SimpleXMLElement::__set_state(array( '@attributes' => array ( 'scheme' => 'https://www.sec.gov/', 'label' => 'form type', 'term' => '8-K', ), )), 'id' => 'urn:tag:sec.gov,2008:accession-number=0001104659-24-056303', )), 1 => \SimpleXMLElement::__set_state(array( 'title' => '8-K - Catalyst Bancorp, Inc. (0001849867) (Filer)', 'link' => \SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'alternate', 'type' => 'text/html', 'href' => 'https://www.sec.gov/Archives/edgar/data/1849867/000184986724000015/0001849867-24-000015-index.htm', ), )), 'description' => \SimpleXMLElement::__set_state(array( )), 'updated' => '2024-05-02T15:19:06-04:00', 'category' => \SimpleXMLElement::__set_state(array( '@attributes' => array ( 'scheme' => 'https://www.sec.gov/', 'label' => 'form type', 'term' => '8-K', ), )), 'id' => 'urn:tag:sec.gov,2008:accession-number=0001849867-24-000015', )), ), ))
Output for 8.1.0 - 8.1.34
SimpleXMLElement::__set_state(array( 'title' => 'Latest Filings - Thu, 02 May 2024 15:27:03 EDT', 'link' => array ( 0 => SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'alternate', 'href' => '/cgi-bin/browse-edgar?action=getcurrent', ), )), 1 => SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'self', 'href' => '/cgi-bin/browse-edgar?action=getcurrent', ), )), ), 'id' => 'https://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent', 'author' => SimpleXMLElement::__set_state(array( 'name' => 'Webmaster', 'email' => 'webmaster@sec.gov', )), 'updated' => '2024-05-02T15:27:03-04:00', 'entry' => array ( 0 => SimpleXMLElement::__set_state(array( 'title' => '8-K - KKR FS Income Trust (0001930679) (Filer)', 'link' => SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'alternate', 'type' => 'text/html', 'href' => 'https://www.sec.gov/Archives/edgar/data/1930679/000110465924056303/0001104659-24-056303-index.htm', ), )), 'description' => SimpleXMLElement::__set_state(array( )), 'updated' => '2024-05-02T15:19:50-04:00', 'category' => SimpleXMLElement::__set_state(array( '@attributes' => array ( 'scheme' => 'https://www.sec.gov/', 'label' => 'form type', 'term' => '8-K', ), )), 'id' => 'urn:tag:sec.gov,2008:accession-number=0001104659-24-056303', )), 1 => SimpleXMLElement::__set_state(array( 'title' => '8-K - Catalyst Bancorp, Inc. (0001849867) (Filer)', 'link' => SimpleXMLElement::__set_state(array( '@attributes' => array ( 'rel' => 'alternate', 'type' => 'text/html', 'href' => 'https://www.sec.gov/Archives/edgar/data/1849867/000184986724000015/0001849867-24-000015-index.htm', ), )), 'description' => SimpleXMLElement::__set_state(array( )), 'updated' => '2024-05-02T15:19:06-04:00', 'category' => SimpleXMLElement::__set_state(array( '@attributes' => array ( 'scheme' => 'https://www.sec.gov/', 'label' => 'form type', 'term' => '8-K', ), )), 'id' => 'urn:tag:sec.gov,2008:accession-number=0001849867-24-000015', )), ), ))

preferences:
79.16 ms | 1342 KiB | 4 Q