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); //var_dump($xmlstr); foreach ($xml->images->image as $im) { // create an array $images with number as index and url as value var_dump ($im); } ?>

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.69
8.3.50.0100.00522.04
8.3.40.0140.00719.13
8.3.30.0090.00619.24
8.3.20.0040.00420.59
8.3.10.0080.00022.42
8.3.00.0050.00322.84
8.2.180.0110.00718.64
8.2.170.0110.00422.96
8.2.160.0090.00620.83
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00417.75
8.2.110.0000.00822.38
8.2.100.0060.00618.09
8.2.90.0050.00319.48
8.2.80.0060.00318.18
8.2.70.0030.00517.88
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0050.00318.34
8.2.30.0080.00018.13
8.2.20.0000.00717.89
8.2.10.0080.00018.00
8.2.00.0080.00018.01
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0040.00719.47
8.1.220.0000.00817.90
8.1.210.0040.00418.77
8.1.200.0090.00017.48
8.1.190.0040.00417.78
8.1.180.0030.00518.10
8.1.170.0050.00318.78
8.1.160.0070.00022.40
8.1.150.0050.00218.85
8.1.140.0040.00417.63
8.1.130.0000.00718.03
8.1.120.0000.00717.77
8.1.110.0030.00617.61
8.1.100.0000.00717.58
8.1.90.0080.00017.82
8.1.80.0040.00417.81
8.1.70.0070.00017.63
8.1.60.0060.00317.70
8.1.50.0000.00817.77
8.1.40.0040.00417.71
8.1.30.0060.00317.89
8.1.20.0030.00517.88
8.1.10.0040.00417.85
8.1.00.0000.00717.53
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0000.00818.60
8.0.270.0030.00317.63
8.0.260.0030.00317.19
8.0.250.0000.00717.29
8.0.240.0040.00417.20
8.0.230.0000.00817.16
8.0.220.0000.00717.10
8.0.210.0050.00317.15
8.0.200.0000.00717.30
8.0.190.0000.00817.25
8.0.180.0030.00517.12
8.0.170.0000.00817.23
8.0.160.0070.00017.30
8.0.150.0030.00317.20
8.0.140.0000.00717.05
8.0.130.0000.00513.63
8.0.120.0060.00317.25
8.0.110.0100.00017.25
8.0.100.0000.00717.15
8.0.90.0040.00417.23
8.0.80.0090.00617.16
8.0.70.0050.00317.35
8.0.60.0050.00317.29
8.0.50.0040.00417.10
8.0.30.0090.01117.53
8.0.20.0100.00917.40
8.0.10.0030.00617.14
8.0.00.0070.01017.10
7.4.330.0000.00515.55
7.4.320.0030.00316.82
7.4.300.0030.00516.85
7.4.290.0030.00316.82
7.4.280.0070.00316.64
7.4.270.0070.00016.87
7.4.260.0070.00016.66
7.4.250.0000.00816.81
7.4.240.0020.00516.76
7.4.230.0070.00016.59
7.4.220.0000.01816.82
7.4.210.0090.00616.90
7.4.200.0050.00216.99
7.4.190.0020.00516.82
7.4.160.0040.01216.97
7.4.150.0060.01317.40
7.4.140.0080.01017.86
7.4.130.0100.01016.84
7.4.120.0140.00716.74
7.4.110.0120.00616.71
7.4.100.0090.01616.63
7.4.90.0150.00616.64
7.4.80.0100.00719.39
7.4.70.0070.01016.83
7.4.60.0120.00316.71
7.4.50.0070.00016.50
7.4.40.0090.00622.77
7.4.30.0030.01416.82
7.3.330.0030.00313.16
7.3.320.0000.00613.44
7.3.310.0000.00716.50
7.3.300.0060.00316.43
7.3.290.0100.01016.49
7.3.280.0070.01016.46
7.3.270.0120.00917.40
7.3.260.0060.01216.52
7.3.250.0110.00616.63
7.3.240.0090.00616.50
7.3.230.0000.02116.69
7.3.210.0080.01116.49
7.3.200.0100.00719.39
7.3.190.0140.00916.45
7.3.180.0090.01316.60
7.3.170.0060.01616.52
7.3.160.0090.00616.65
7.2.330.0030.01316.47
7.2.320.0090.01216.22
7.2.310.0170.00716.52
7.2.300.0000.01616.42
7.2.290.0030.01516.26
5.4.130.0200.07016.33
5.4.120.0230.07016.20
5.4.110.0270.03716.43
5.4.100.0270.07016.34
5.4.90.0170.07716.23
5.4.80.0170.07316.42
5.4.70.0230.05016.42
5.4.60.0200.05716.47
5.4.50.0330.06016.36
5.4.40.0330.06316.19
5.4.30.0230.07016.41
5.4.20.0130.04316.28
5.4.10.0270.04716.04
5.4.00.0330.03315.70
5.3.230.0200.07714.45
5.3.220.0300.04014.40
5.3.210.0100.05314.44
5.3.200.0200.07714.52
5.3.190.0200.07014.55
5.3.180.0270.03714.51
5.3.170.0170.05014.51
5.3.160.0230.07014.41
5.3.150.0230.03714.39
5.3.140.0300.06014.41
5.3.130.0270.07014.41
5.3.120.0200.03714.48
5.3.110.0270.07314.52
5.3.100.0130.04713.89
5.3.90.0200.04013.95
5.3.80.0230.04314.07
5.3.70.0200.04714.11
5.3.60.0230.04313.88
5.3.50.0200.04313.75
5.3.40.0270.06313.75
5.3.30.0300.05713.84
5.3.20.0300.06713.55
5.3.10.0230.07013.64
5.3.00.0130.05313.42

preferences:
58.15 ms | 401 KiB | 5 Q