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)
8.3.70.0100.00718.68
8.3.60.0070.01116.88
8.3.50.0140.00917.69
8.3.40.0040.01118.95
8.3.30.0070.00719.03
8.3.20.0110.00718.98
8.3.10.0060.00320.79
8.3.00.0050.00319.63
8.2.180.0150.00717.13
8.2.170.0070.01422.96
8.2.160.0070.00722.42
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0050.00226.16
8.2.120.0100.00018.34
8.2.110.0030.00721.29
8.2.100.0080.00418.09
8.2.90.0040.00419.48
8.2.80.0050.00318.30
8.2.70.0000.00917.88
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0050.00318.47
8.2.30.0000.00718.26
8.2.20.0030.00717.99
8.2.10.0070.00417.99
8.2.00.0050.00318.01
8.1.280.0150.00025.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00920.95
8.1.230.0110.00021.15
8.1.220.0000.00818.01
8.1.210.0050.00319.13
8.1.200.0070.00317.60
8.1.190.0040.00417.78
8.1.180.0040.00418.10
8.1.170.0040.00420.80
8.1.160.0050.00219.19
8.1.150.0040.00419.00
8.1.140.0070.00017.66
8.1.130.0000.00618.03
8.1.120.0000.00717.83
8.1.110.0000.00717.61
8.1.100.0080.00017.82
8.1.90.0070.00017.68
8.1.80.0000.00717.68
8.1.70.0030.00317.59
8.1.60.0040.00417.89
8.1.50.0040.00417.67
8.1.40.0040.00417.82
8.1.30.0040.00418.02
8.1.20.0050.00317.82
8.1.10.0080.00017.90
8.1.00.0060.00317.65
8.0.300.0040.00420.19
8.0.290.0000.00817.13
8.0.280.0030.00318.53
8.0.270.0000.00717.61
8.0.260.0060.00017.20
8.0.250.0100.00017.26
8.0.240.0070.00317.36
8.0.230.0030.00517.30
8.0.220.0070.00017.18
8.0.210.0040.00417.16
8.0.200.0000.00717.32
8.0.190.0070.00017.23
8.0.180.0040.00417.20
8.0.170.0060.00317.23
8.0.160.0000.00717.10
8.0.150.0030.00617.19
8.0.140.0060.00317.01
8.0.130.0000.00613.79
8.0.120.0000.00917.14
8.0.110.0070.00017.31
8.0.100.0000.00717.17
8.0.90.0040.00417.12
8.0.80.0060.00917.23
8.0.70.0080.00017.16
8.0.60.0000.00717.13
8.0.50.0000.00817.23
8.0.30.0130.00517.45
8.0.20.0150.00417.34
8.0.10.0030.00517.36
8.0.00.0070.01116.90
7.4.330.0030.00313.28
7.4.320.0080.00016.78
7.4.300.0030.00316.90
7.4.290.0030.00516.77
7.4.280.0030.00616.86
7.4.270.0000.00716.87
7.4.260.0030.00313.65
7.4.250.0000.00916.80
7.4.240.0040.00416.64
7.4.230.0040.00416.81
7.4.220.0090.00616.89
7.4.210.0060.01016.82
7.4.200.0040.00416.77
7.4.190.0030.00316.86
7.4.160.0080.00816.75
7.4.150.0140.01016.79
7.4.140.0090.01216.80
7.4.130.0140.00716.71
7.4.120.0080.01216.84
7.4.110.0100.00716.66
7.4.100.0090.00916.71
7.4.90.0100.00716.68
7.4.80.0140.00716.85
7.4.70.0110.00716.61
7.4.60.0130.00316.64
7.4.50.0060.00316.70
7.4.40.0080.00816.86
7.4.30.0110.00516.78
7.3.330.0000.00613.47
7.3.320.0000.00713.32
7.3.310.0030.00316.28
7.3.300.0000.00716.33
7.3.290.0060.00916.43
7.3.280.0090.01016.50
7.3.270.0090.00916.51
7.3.260.0100.00616.64
7.3.250.0120.01016.65
7.3.240.0060.01216.63
7.3.230.0070.01316.46
7.3.210.0100.00716.74
7.3.200.0130.00619.39
7.3.190.0100.01316.59
7.3.180.0070.01016.59
7.3.170.0080.00816.59
7.3.160.0110.00816.59
7.2.330.0120.00616.55
7.2.320.0090.00916.43
7.2.310.0070.01716.23
7.2.300.0090.00916.57
7.2.290.0100.00716.32
5.4.130.0070.07716.29
5.4.120.0070.03316.40
5.4.110.0030.03716.40
5.4.100.0070.04016.48
5.4.90.0030.03316.38
5.4.80.0070.03016.42
5.4.70.0030.03316.32
5.4.60.0030.03316.37
5.4.50.0030.03316.36
5.4.40.0030.03716.38
5.4.30.0070.03016.27
5.4.20.0030.03316.40
5.4.10.0000.03716.38
5.4.00.0030.03315.74
5.3.230.0070.05714.50
5.3.220.0100.03314.50
5.3.210.0000.04314.59
5.3.200.0070.03714.49
5.3.190.0030.04314.55
5.3.180.0000.04314.47
5.3.170.0000.04014.48
5.3.160.0130.02714.51
5.3.150.0000.04014.51
5.3.140.0000.04014.48
5.3.130.0100.03014.52
5.3.120.0130.03714.37
5.3.110.0100.03014.49
5.3.100.0030.03713.94
5.3.90.0100.03713.86
5.3.80.0000.03713.96
5.3.70.0000.03713.98
5.3.60.0000.03713.99
5.3.50.0000.04013.91
5.3.40.0000.03713.91
5.3.30.0070.03013.84
5.3.20.0000.03713.67
5.3.10.0000.04013.58
5.3.00.0000.03713.58

preferences:
51.89 ms | 401 KiB | 5 Q