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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0150.01120.41
8.4.150.0030.00014.05
8.4.140.0140.00718.00
8.4.130.0120.00918.16
8.4.120.0100.01120.80
8.4.110.0120.00819.46
8.4.100.0130.00818.14
8.4.90.0100.01218.39
8.4.80.0080.00518.21
8.4.70.0020.00720.07
8.4.60.0140.00718.11
8.4.50.0280.00818.92
8.4.40.0260.00918.14
8.4.30.0410.00817.88
8.4.20.0420.00817.78
8.4.10.0410.00817.90
8.3.280.0020.00014.05
8.3.270.0120.00916.86
8.3.260.0100.00916.98
8.3.250.0080.01119.21
8.3.240.0130.00717.20
8.3.230.0030.01016.96
8.3.220.0040.00617.09
8.3.210.0120.00916.89
8.3.200.0100.00817.02
8.3.190.0380.00717.25
8.3.180.0340.00717.11
8.3.170.0400.01016.95
8.3.160.0390.01016.81
8.3.150.0360.00716.92
8.3.140.0370.00716.82
8.3.130.0290.00716.84
8.3.120.0320.00816.92
8.3.110.0370.00817.01
8.3.100.0370.00617.02
8.3.90.0310.00717.09
8.3.80.0360.00917.02
8.3.70.0390.01016.89
8.3.60.0380.01016.94
8.3.50.0380.00816.89
8.3.40.0310.00717.88
8.3.30.0330.00917.82
8.3.20.0290.01117.96
8.3.10.0300.01017.72
8.3.00.0310.00917.81
8.2.290.0120.00620.85
8.2.280.0290.01116.80
8.2.270.0330.01017.07
8.2.260.0310.01116.89
8.2.250.0320.00917.14
8.2.240.0300.01316.77
8.2.230.0320.00816.70
8.2.220.0320.00916.98
8.2.210.0320.00816.93
8.2.200.0330.00916.81
8.2.190.0300.00617.01
8.2.180.0280.00817.00
8.2.170.0360.01218.12
8.2.160.0290.00817.92
8.2.150.0310.00817.92
8.2.140.0290.00717.96
8.2.130.0340.00817.91
8.2.120.0360.00917.80
8.2.110.0370.00717.86
8.2.100.0350.00717.90
8.2.90.0330.01017.94
8.2.80.0340.00717.80
8.2.70.0320.00817.75
8.2.60.0350.00717.89
8.2.50.0270.00917.88
8.2.40.0220.00617.79
8.2.30.0250.00717.72
8.2.20.0260.00517.67
8.2.10.0270.00917.83
8.2.00.0360.00617.75

preferences:
59.59 ms | 403 KiB | 5 Q