3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <?xml version="1.0"?> <products><product><product_code>0084064919005</product_code><name>Spy Men's Hielo Sunglasses</name><stock>1</stock><regular_price>94.95</regular_price><sale_price>44.93</sale_price><brand>Spy Optic Inc </brand><gender/><category>Sunglasses</category><product_description>The Spy Men's Hielo Sunglasses are a classic hit maker. The frames are custom built out of high quality propionate, a lightweight durable material. An 8 base curve ARC lens gives you perfect clarity without distortion and gives you 100% UV protection.</product_description><buy_url>http://www.sunandski.com/ProductDetails.asp?ProductCode=0084064919005</buy_url><large_image_url>imgs/products/lrg/0084064919005.jpg</large_image_url><remote_image_url>http://www.sunandski.com/v/vspfiles/photos/0084064919005-2T.jpg</remote_image_url><small_image_url>http://www.sunandski.com/v/vspfiles/photos/0084064919005-1.jpg</small_image_url><size/><savings>53</savings></product><product><product_code>0084064919010</product_code><name>Spy Men's Hsx Sunglasses</name><stock>10</stock><regular_price>104.95</regular_price><sale_price>49.93</sale_price><brand>Spy Optic Inc </brand><gender/><category>Sunglasses</category><product_description>The Spy Men's Hsx Sunglasses is packed with all the features and style you expect from the Spy line of sunglasses. The frames are made out of ultra-lightweight and durable Grilamid. An 8x4-base toric arc lenses give you vision without distortion. These glasses are scratch and impact resistant so that they will be your favorite for a long time to come.</product_description><buy_url>http://www.sunandski.com/ProductDetails.asp?ProductCode=0084064919010</buy_url><large_image_url>imgs/products/lrg/0084064919010.jpg</large_image_url><remote_image_url>http://www.sunandski.com/v/vspfiles/photos/0084064919010-2T.jpg</remote_image_url><small_image_url>http://www.sunandski.com/v/vspfiles/photos/0084064919010-1.jpg</small_image_url><size/><savings>53</savings></product><product><product_code>0084064919011</product_code><name>Spy Men's Hsx Sunglasses</name><stock>6</stock><regular_price>149.95</regular_price><sale_price>69.93</sale_price><brand>Spy Optic Inc </brand><gender/><category>Sunglasses</category><product_description>The Spy Men's Hsx Sunglasses are made from lightweight durable Grilamid. It has 8x4 base Toric Arc Lenses give you superior vision without distortion. It offers 100% UV Protection to spare your eyes from the sun s harmful rays. Metal detailing give these glasses extra style.</product_description><buy_url>http://www.sunandski.com/ProductDetails.asp?ProductCode=0084064919011</buy_url><large_image_url>imgs/products/lrg/0084064919011.jpg</large_image_url><remote_image_url>http://www.sunandski.com/v/vspfiles/photos/0084064919011-2T.jpg</remote_image_url><small_image_url>http://www.sunandski.com/v/vspfiles/photos/0084064919011-1.jpg</small_image_url><size/><savings>54</savings></product> </products> XML ); $arr=array(); foreach($xml->product as $aTask) { $arr[]=$aTask; } //print_r($arr); usort($arr,function($a,$b){ return usort($a,category); }); //print_r($arr); $xml=simplexml_load_string(<<<XML <?xml version="1.0"?> <products> </products> XML ); foreach($arr as $aTask) { $tTask=$xml->addChild($aTask->getName()); $tTask->addChild($aTask->date->getName(),(string)$aTask->name); $tTask->addChild($aTask->title->getName(),(string)$aTask->category); $tTask->addChild($aTask->description->getName(),(string)$aTask->product_description); } echo $xml->asXML();

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.60.0060.01318.61
8.3.50.0110.00821.21
8.3.40.0110.00419.19
8.3.30.0100.00320.46
8.3.20.0080.00020.78
8.3.10.0080.00021.20
8.3.00.0060.00323.73
8.2.180.0120.00316.88
8.2.170.0040.01122.96
8.2.160.0070.01020.64
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.23
8.2.110.0070.00319.39
8.2.100.0120.00018.03
8.2.90.0000.00819.52
8.2.80.0080.00018.17
8.2.70.0040.00418.00
8.2.60.0000.00818.18
8.2.50.0030.00618.07
8.2.40.0000.00818.40
8.2.30.0000.00719.73
8.2.20.0050.00317.97
8.2.10.0080.00018.03
8.2.00.0040.00417.91
8.1.280.0170.00325.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00623.93
8.1.230.0080.00421.09
8.1.220.0030.00618.77
8.1.210.0100.00019.14
8.1.200.0000.00817.60
8.1.190.0080.00017.66
8.1.180.0030.00518.10
8.1.170.0040.00418.77
8.1.160.0000.00719.13
8.1.150.0000.00818.77
8.1.140.0040.00417.70
8.1.130.0000.00718.05
8.1.120.0040.00417.66
8.1.110.0030.00517.61
8.1.100.0000.00717.65
8.1.90.0040.00417.57
8.1.80.0050.00217.66
8.1.70.0000.00717.62
8.1.60.0000.00817.71
8.1.50.0000.00717.64
8.1.40.0030.00617.73
8.1.30.0060.00317.75
8.1.20.0040.00417.82
8.1.10.0060.00317.68
8.1.00.0040.00417.78
8.0.300.0040.00420.14
8.0.290.0000.00817.36
8.0.280.0070.00018.59
8.0.270.0070.00017.40
8.0.260.0030.00317.02
8.0.250.0030.00317.25
8.0.240.0000.01017.29
8.0.230.0040.00317.29
8.0.220.0030.00517.16
8.0.210.0070.00017.14
8.0.200.0060.00017.25
8.0.190.0000.00817.30
8.0.180.0030.00517.16
8.0.170.0040.00417.11
8.0.160.0000.00717.06
8.0.150.0000.00717.07
8.0.140.0040.00417.21
8.0.130.0000.01013.65
8.0.120.0000.00817.05
8.0.110.0080.00017.13
8.0.100.0040.00417.05
8.0.90.0060.00317.00
8.0.80.0100.00717.12
8.0.70.0000.00817.26
8.0.60.0040.00417.03
8.0.50.0040.00417.02
8.0.30.0090.00917.60
8.0.20.0100.00917.49
8.0.10.0040.00417.39
8.0.00.0090.01516.97
7.4.330.0080.00015.35
7.4.320.0000.00716.92
7.4.300.0000.00616.81
7.4.290.0000.00816.70
7.4.280.0070.00016.78
7.4.270.0030.00316.94
7.4.260.0000.00513.50
7.4.250.0030.00616.72
7.4.240.0080.00016.74
7.4.230.0070.00016.77
7.4.220.0120.00616.81
7.4.210.0070.00816.95
7.4.200.0040.00416.98
7.4.190.0040.00417.04
7.4.160.0110.00516.82
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0130.00516.93
7.4.120.0100.01316.85
7.4.110.0130.01016.92
7.4.100.0060.01516.92
7.4.90.0060.01216.88
7.4.80.0070.01119.39
7.4.70.0090.01616.68
7.4.60.0080.01116.81
7.4.50.0000.00916.83
7.4.40.0130.00322.77
7.4.30.0100.01016.91
7.4.00.0090.00615.13
7.3.330.0000.00513.41
7.3.320.0030.00313.64
7.3.310.0070.00016.56
7.3.300.0060.00316.54
7.3.290.0040.01816.66
7.3.280.0080.01016.67
7.3.270.0070.01717.40
7.3.260.0090.00918.24
7.3.250.0060.01316.75
7.3.240.0090.00916.67
7.3.230.0110.00516.87
7.3.210.0100.01016.79
7.3.200.0150.00319.39
7.3.190.0100.01416.73
7.3.180.0070.01116.74
7.3.170.0140.00816.94
7.3.160.0130.01016.72
7.3.120.0090.00715.00
7.3.110.0070.01114.78
7.3.100.0060.00914.70
7.3.90.0030.01315.28
7.3.80.0060.00614.86
7.3.70.0130.00014.87
7.3.60.0000.01615.02
7.3.50.0030.00714.84
7.3.40.0000.01715.04
7.3.30.0030.01015.16
7.3.20.0090.00616.66
7.3.10.0070.01016.71
7.3.00.0100.00516.67
7.2.330.0000.01917.11
7.2.320.0090.01217.05
7.2.310.0110.01116.88
7.2.300.0140.00717.09
7.2.290.0080.00816.73
7.2.250.0060.01315.14
7.2.240.0140.00315.12
7.2.230.0050.00515.30
7.2.220.0090.00015.37
7.2.210.0060.00615.01
7.2.200.0090.00615.34
7.2.190.0030.01515.10
7.2.180.0000.01115.19
7.2.170.0060.00915.31
7.2.130.0090.00317.09
7.2.120.0030.01216.89
7.2.110.0040.00816.93
7.2.100.0000.01217.02
7.2.90.0040.01117.03
7.2.80.0100.00317.20
7.2.70.0000.00917.10
7.2.60.0060.00817.04
7.2.50.0030.00917.24
7.2.40.0070.01117.10
7.2.30.0000.01216.88
7.2.20.0070.00717.03
7.2.10.0100.00016.96
7.2.00.0020.01118.29
7.1.330.0030.01015.82
7.1.320.0050.00316.02
7.1.310.0060.00915.95
7.1.300.0030.01216.09
7.1.290.0070.00715.94
7.1.280.0000.01416.07
7.1.270.0070.00715.78
7.1.260.0080.00616.02
7.1.250.0000.01115.89
7.1.200.0070.00315.95
7.1.70.0000.00717.11
7.1.60.0040.00817.42
7.1.50.0040.01216.77
7.1.00.0070.03022.45
7.0.200.0060.00916.95
7.0.140.0070.07022.04
7.0.80.0030.05720.01
7.0.70.0100.07020.09
7.0.60.0170.07020.08
7.0.50.0170.07720.50
7.0.40.0100.06320.20
7.0.30.0130.05320.21
7.0.20.0030.08320.24
7.0.10.0070.08320.08
7.0.00.0030.08720.16
5.6.280.0030.07321.05
5.6.230.0070.08720.85
5.6.220.0100.07320.56
5.6.210.0100.07720.88
5.6.200.0070.08021.13
5.6.190.0000.09021.27
5.6.180.0100.08321.14
5.6.170.0070.07721.28
5.6.160.0070.08021.14
5.6.150.0130.05021.17
5.6.140.0030.08721.21
5.6.130.0000.08721.16
5.6.120.0130.04021.18
5.6.110.0000.04721.12
5.6.100.0070.05721.00
5.6.90.0070.04321.27
5.6.80.0130.03720.48
5.6.70.0030.04720.55
5.6.60.0030.06020.46
5.6.50.0070.04020.63
5.6.40.0070.03720.48
5.6.30.0070.04320.57
5.6.20.0030.04020.63
5.6.10.0030.05020.57
5.6.00.0130.02320.63
5.5.370.0000.09020.64
5.5.360.0070.08720.75
5.5.350.0070.06720.47
5.5.340.0070.08321.08
5.5.330.0000.09720.91
5.5.320.0070.06720.91
5.5.310.0170.07320.99
5.5.300.0100.07320.98
5.5.290.0130.07321.03
5.5.280.0070.06721.06
5.5.270.0070.06320.85
5.5.260.0030.04320.99
5.5.250.0000.07020.62
5.5.240.0000.04320.41
5.5.230.0030.04720.38
5.5.220.0070.04020.18
5.5.210.0070.03720.34
5.5.200.0030.04020.26
5.5.190.0030.04720.19
5.5.180.0070.07320.42
5.5.160.0030.04320.18
5.5.150.0030.04020.15
5.5.140.0070.04020.28
5.5.130.0070.03320.22
5.5.120.0070.03720.26
5.5.110.0070.04020.25
5.5.100.0000.04320.29
5.5.90.0000.04320.05
5.5.80.0030.03320.11
5.5.70.0030.03720.29
5.5.60.0000.06020.28
5.5.50.0070.03320.13
5.5.40.0000.04020.23
5.5.30.0070.04020.13
5.5.20.0000.04320.29
5.5.10.0030.03320.21
5.5.00.0000.04320.11
5.4.450.0200.06019.30
5.4.440.0000.07719.47
5.4.430.0000.04319.46
5.4.420.0070.06019.56
5.4.410.0070.03719.46
5.4.400.0100.03319.26
5.4.390.0000.04019.19
5.4.380.0100.06719.20
5.4.370.0100.06319.14
5.4.360.0070.07719.39
5.4.350.0070.03319.28
5.4.340.0000.05319.23
5.4.320.0030.03718.97
5.4.310.0000.04019.28
5.4.300.0000.04318.94
5.4.290.0030.04319.14
5.4.280.0000.04319.27
5.4.270.0030.03719.29
5.4.260.0070.06319.18
5.4.250.0000.05319.27
5.4.240.0030.03319.34
5.4.230.0000.04018.96
5.4.220.0000.04719.38
5.4.210.0030.04019.03
5.4.200.0030.03718.93
5.4.190.0030.04019.26
5.4.180.0070.07019.23
5.4.170.0070.04718.98
5.4.160.0070.07719.02
5.4.150.0030.03719.16
5.4.140.0070.02716.57
5.4.130.0030.03716.64
5.4.120.0030.03316.55
5.4.110.0100.07016.77
5.4.100.0000.05316.62
5.4.90.0100.07316.51
5.4.80.0030.05016.53
5.4.70.0100.06316.66
5.4.60.0100.06316.55
5.4.50.0130.06716.58
5.4.40.0130.07016.56
5.4.30.0070.06716.48
5.4.20.0170.05716.66
5.4.10.0070.07716.51
5.4.00.0000.07315.84
5.3.290.0000.03714.85
5.3.280.0070.05314.81
5.3.270.0030.03714.88
5.3.260.0070.03714.66
5.3.250.0130.05714.84
5.3.240.0070.06014.84
5.3.230.0030.04014.81
5.3.220.0030.03714.85
5.3.210.0000.05014.79
5.3.200.0070.07014.76
5.3.190.0200.05314.84
5.3.180.0070.05014.76
5.3.170.0030.04714.84
5.3.160.0070.07314.66
5.3.150.0100.04314.72
5.3.140.0100.08314.70
5.3.130.0130.08014.70
5.3.120.0200.06314.70
5.3.110.0100.05314.71
5.3.100.0170.05314.31
5.3.90.0100.04314.26
5.3.80.0100.06714.30
5.3.70.0070.04714.24
5.3.60.0030.05014.16
5.3.50.0030.06714.16
5.3.40.0030.08314.18
5.3.30.0130.05314.13
5.3.20.0030.07313.67
5.3.10.0100.04313.95
5.3.00.0230.04713.72
5.2.170.0070.06313.58
5.2.160.0070.05313.58
5.2.150.0070.05713.58
5.2.140.0070.05713.58
5.2.130.0100.05013.58
5.2.120.0030.05313.58
5.2.110.0030.06313.58
5.2.100.0030.06313.58
5.2.90.0000.06313.58
5.2.80.0100.05713.58
5.2.70.0070.05713.58
5.2.60.0130.05313.58
5.2.50.0030.04013.58
5.2.40.0070.05713.58
5.2.30.0030.05713.58
5.2.20.0030.06713.58
5.2.10.0100.04313.58
5.2.00.0030.05313.58
5.1.60.0030.05713.58
5.1.50.0130.04013.58
5.1.40.0030.04713.58
5.1.30.0070.03313.58
5.1.20.0000.03713.58
5.1.10.0070.03713.58
5.1.00.0030.05713.58
5.0.50.0000.05013.58
5.0.40.0070.04013.58
5.0.30.0070.06313.58
5.0.20.0070.03313.58
5.0.10.0030.04313.58
5.0.00.0000.06713.58
4.4.90.0030.03313.58
4.4.80.0000.03013.58
4.4.70.0000.04013.58
4.4.60.0030.03713.58
4.4.50.0000.03713.58
4.4.40.0000.04013.58
4.4.30.0000.03713.58
4.4.20.0000.03713.58
4.4.10.0000.03313.58
4.4.00.0000.05313.58
4.3.110.0030.03313.58
4.3.100.0100.02713.58
4.3.90.0000.03713.58
4.3.80.0000.05013.58
4.3.70.0030.02713.58
4.3.60.0030.02313.58
4.3.50.0030.03313.58
4.3.40.0030.05313.58
4.3.30.0000.03713.58
4.3.20.0030.03013.58
4.3.10.0030.02013.58
4.3.00.0000.03313.58

preferences:
62.81 ms | 401 KiB | 5 Q