3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = <<<XML <Property> <images> <image number="1"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627783.jpg </image> <image number="2"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627794.jpg</image> </image> <image number="3"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627792.jpg </image> </images> </Property> XML; $xml = simplexml_load_string($xmlstr); foreach ($xml->images->image as $image) { // create an array $images with number as index and url as value $images[{$image['number']}]=(string)$image; } var_dump($images); ?>

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)
5.4.130.0200.03716.31
5.4.120.0370.03316.30
5.4.110.0300.04316.20
5.4.100.0270.03016.24
5.4.90.0270.03016.45
5.4.80.0270.04316.56
5.4.70.0230.03716.53
5.4.60.0230.03316.22
5.4.50.0270.03716.51
5.4.40.0230.03316.54
5.4.30.0170.04016.22
5.4.20.0200.03716.53
5.4.10.0170.04016.51
5.4.00.0230.03315.80
5.3.230.0300.02714.53
5.3.220.0270.04014.47
5.3.210.0270.03014.43
5.3.200.0200.03714.61
5.3.190.0270.03714.41
5.3.180.0370.05714.42
5.3.170.0300.05314.39
5.3.160.0300.06314.40
5.3.150.0400.03314.40
5.3.140.0300.06314.51
5.3.130.0230.06314.56
5.3.120.0270.07314.64
5.3.110.0370.06714.57
5.3.100.0370.04013.88
5.3.90.0300.05713.87
5.3.80.0370.06713.87
5.3.70.0230.05713.86
5.3.60.0330.07013.99
5.3.50.0300.07013.79
5.3.40.0330.05713.79
5.3.30.0370.06713.93
5.3.20.0330.05713.67
5.3.10.0300.03713.54
5.3.00.0330.02713.63

preferences:
136.18 ms | 1394 KiB | 7 Q