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 $image) { // create an array $images with number as index and url as value var_dump ($image); $images[$i]=(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)
8.3.60.0090.00616.88
8.3.50.0100.00817.87
8.3.40.0100.01018.84
8.3.30.0080.00819.04
8.3.20.0080.00019.12
8.3.10.0150.00420.84
8.3.00.0060.00317.84
8.2.180.0100.01016.88
8.2.170.0100.01022.96
8.2.160.0000.01422.56
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00420.08
8.2.110.0040.00821.00
8.2.100.0040.00818.09
8.2.90.0030.00619.34
8.2.80.0040.00418.05
8.2.70.0000.00817.86
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00918.44
8.2.30.0050.00218.26
8.2.20.0040.00417.99
8.2.10.0000.00717.97
8.2.00.0040.00418.00
8.1.280.0120.00325.92
8.1.270.0000.00824.66
8.1.260.0100.01026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.72
8.1.230.0110.00021.14
8.1.220.0000.00918.16
8.1.210.0080.00019.12
8.1.200.0030.00717.35
8.1.190.0000.00717.78
8.1.180.0040.00418.10
8.1.170.0050.00318.89
8.1.160.0000.00718.98
8.1.150.0000.00818.80
8.1.140.0000.01017.66
8.1.130.0030.00318.18
8.1.120.0040.00417.74
8.1.110.0000.00717.66
8.1.100.0050.00317.71
8.1.90.0040.00417.81
8.1.80.0040.00417.68
8.1.70.0020.00517.58
8.1.60.0040.00417.80
8.1.50.0080.00017.75
8.1.40.0040.00417.69
8.1.30.0000.00717.83
8.1.20.0030.00517.94
8.1.10.0000.00817.62
8.1.00.0040.00417.56
8.0.300.0070.00020.02
8.0.290.0050.00217.00
8.0.280.0030.00318.76
8.0.270.0070.00017.55
8.0.260.0030.00317.08
8.0.250.0000.00717.33
8.0.240.0070.00317.24
8.0.230.0050.00217.14
8.0.220.0030.00317.07
8.0.210.0030.00317.22
8.0.200.0000.00717.30
8.0.190.0070.00317.14
8.0.180.0040.00417.20
8.0.170.0030.00617.12
8.0.160.0000.00717.32
8.0.150.0030.00517.04
8.0.140.0070.00017.13
8.0.130.0000.00513.75
8.0.120.0070.00017.18
8.0.110.0000.00717.20
8.0.100.0040.00417.21
8.0.90.0040.00417.20
8.0.80.0030.01217.19
8.0.70.0050.00317.15
8.0.60.0040.00417.27
8.0.50.0060.00317.23
8.0.30.0110.00917.51
8.0.20.0090.01117.33
8.0.10.0000.00717.16
8.0.00.0140.00717.11
7.4.330.0030.00313.30
7.4.320.0030.00316.86
7.4.300.0070.00016.78
7.4.290.0030.00316.84
7.4.280.0040.00416.88
7.4.270.0000.00716.67
7.4.260.0030.00313.57
7.4.250.0060.00316.77
7.4.240.0000.00716.88
7.4.230.0040.00416.70
7.4.220.0100.01016.88
7.4.210.0070.00916.83
7.4.200.0000.00716.79
7.4.190.0030.00316.86
7.4.160.0080.00816.79
7.4.150.0140.00516.75
7.4.140.0110.00716.85
7.4.130.0140.00916.77
7.4.120.0130.00616.66
7.4.110.0070.01016.81
7.4.100.0080.00816.61
7.4.90.0160.00316.80
7.4.80.0110.01216.75
7.4.70.0130.01216.73
7.4.60.0160.00816.59
7.4.50.0040.00416.63
7.4.40.0060.00916.65
7.4.30.0100.01016.68
7.3.330.0030.00313.41
7.3.320.0000.00713.47
7.3.310.0000.00716.26
7.3.300.0040.00416.36
7.3.290.0060.00916.48
7.3.280.0040.01116.43
7.3.270.0030.01616.55
7.3.260.0110.00616.58
7.3.250.0090.01116.64
7.3.240.0030.01416.53
7.3.230.0040.01216.72
7.3.210.0100.00716.45
7.3.200.0120.01019.39
7.3.190.0120.00916.45
7.3.180.0040.01116.36
7.3.170.0140.00816.65
7.3.160.0060.01016.52
7.2.330.0130.00316.45
7.2.320.0070.01016.47
7.2.310.0090.00916.31
7.2.300.0150.00616.11
7.2.290.0100.00616.33
5.4.130.0100.07016.35
5.4.120.0070.06316.25
5.4.110.0030.07716.26
5.4.100.0000.04716.40
5.4.90.0000.07316.39
5.4.80.0070.05716.59
5.4.70.0030.05716.38
5.4.60.0070.05016.25
5.4.50.0130.03316.26
5.4.40.0100.08016.32
5.4.30.0070.07316.57
5.4.20.0130.05016.32
5.4.10.0030.07316.12
5.4.00.0070.04015.80
5.3.230.0070.05314.52
5.3.220.0170.03014.44
5.3.210.0030.06014.52
5.3.200.0030.05314.46
5.3.190.0070.07714.65
5.3.180.0000.06314.46
5.3.170.0030.04314.38
5.3.160.0070.04014.67
5.3.150.0100.06714.67
5.3.140.0030.05714.34
5.3.130.0170.06714.37
5.3.120.0070.07014.50
5.3.110.0030.07714.57
5.3.100.0070.04013.97
5.3.90.0070.05014.04
5.3.80.0130.06713.96
5.3.70.0130.03713.84
5.3.60.0070.06013.95
5.3.50.0070.04013.96
5.3.40.0030.07013.88
5.3.30.0070.07313.73
5.3.20.0000.08313.62
5.3.10.0000.06313.45
5.3.00.0070.05313.58

preferences:
32.73 ms | 401 KiB | 5 Q