3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nfoContent = <<<END <tvshow> <title>Teen Mom: Young + Pregnant</title> <rating>4.5</rating> <plot>Teen Mom: Young and Pregnant follows Ashley, Brianna, Jade, Kayla and Lexi as they prepare (and eventually become) young moms. We\'ll show the highs and lows of their pregnancy journeys -- and the unbelievable changes they endure after the babies are born.</plot> <mpaa>TV-14</mpaa> <id>342726</id> <uniqueid type="tvdb" default="true">342726</uniqueid> <uniqueid type="imdb">tt8961652</uniqueid> <uniqueid type="tmdb">78048</uniqueid> <uniqueid type="tvmaze">34888</uniqueid> <genre>Drama</genre> <genre>Reality</genre> <tag>server1</tag> <status>Ended</status> <premiered>2018-03-12</premiered> <enddate>2022-09-13</enddate> <studio>MTV</studio> <actor> <name>Kayla Sessler</name> <role>Herself</role> </actor> <actor> <name>Brianna Jaramillo</name> <role>Herself</role> </actor> <actor> <name>Rachel Beaver</name> <role>Herself</role> </actor> <actor> <name>Kiaya Elliott</name> <role>Herself</role> </actor> <actor> <name>Madisen Beith</name> <role>Herself</role> </actor> <actor> <name>Kayla Jones</name> <role>Herself</role> </actor> <actor> <name>Ashley Jones</name> <role>Herself</role> <thumb>https://artworks.thetvdb.com/banners/v4/actor/9098064/photo/66093fa6ac945.jpg</thumb> </actor> <actor> <name>Jade Cline</name> <role>Herself</role> </actor> <actor> <name>Lexi Tatman</name> <role>Herself</role> </actor> <episodeguide>{"tvdb":"342726","tvmaze":"34888","tmdb":"78048","imdb":"tt8961652"}</episodeguide> </tvshow> https://www.thetvdb.com/?tab=series&id=342726 END; $doc = new DOMDocument(); $doc->loadXML($nfoContent); $xpath = new DomXpath($doc); $uniqueid = $xpath->query('//uniqueid[@type="imdb"]')->item(0); var_dump($uniqueid);
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14, 8.5.0
Warning: DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 57 in /in/rUo01 on line 64 NULL
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.

preferences:
52.98 ms | 407 KiB | 5 Q