3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlStr = "<LaunchBox> <Game> <Name>Violet</Name> <ReleaseYear>1985</ReleaseYear> <MaxPlayers>1</MaxPlayers> <Platform>ZiNc</Platform> </Game> <Game> <Name>Wishbringer</Name> <ReleaseYear>1985</ReleaseYear> <MaxPlayers>1</MaxPlayers> <Platform>ZiNc</Platform> </Game> <Platform> <Name>3DO Interactive Multiplayer</Name> <Emulated>true</Emulated> <ReleaseDate>1993-10-04T00:00:00-07:00</ReleaseDate> <Developer>The 3DO Company</Developer> </Platform> <Platform> <Name>Commodore Amiga</Name> <Emulated>true</Emulated> <ReleaseDate>1985-07-23T00:00:00-07:00</ReleaseDate> <Developer>Commodore International</Developer> </Platform> </LaunchBox>"; $xml = simplexml_load_string($xmlStr); $games = $xml->xpath('/LaunchBox/Game'); echo count($games).' games'.PHP_EOL; foreach ($games as $game) { print_r($game); }

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.3.70.0120.00916.75
8.3.60.0110.01118.93
8.3.50.0120.00316.97
8.3.40.0130.00322.20
8.3.30.0110.00418.77
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0080.00026.16
8.2.190.0150.00018.91
8.2.180.0070.01116.88
8.2.170.0150.00419.33
8.2.160.0030.01422.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00020.82
8.2.110.0030.00620.95
8.2.100.0100.00020.75
8.2.30.0040.00417.80
8.1.280.0040.01125.92
8.1.270.0030.00524.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00018.91
8.1.230.0030.00620.57

preferences:
16.55 ms | 401 KiB | 5 Q