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 $i=intval($image['number']); $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.0070.01418.75
8.3.50.0130.00822.18
8.3.40.0140.00018.91
8.3.30.0170.00018.79
8.3.20.0080.00018.91
8.3.10.0080.00019.71
8.3.00.0000.00822.11
8.2.180.0090.00617.00
8.2.170.0150.00622.96
8.2.160.0110.00420.64
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00421.25
8.2.110.0030.00621.52
8.2.100.0030.00918.09
8.2.90.0040.00418.28
8.2.80.0060.00320.07
8.2.70.0050.00317.88
8.2.60.0090.00018.16
8.2.50.0050.00318.07
8.2.40.0000.00818.47
8.2.30.0030.00521.39
8.2.20.0000.00718.06
8.2.10.0050.00218.16
8.2.00.0000.00818.06
8.1.280.0120.00625.92
8.1.270.0030.00523.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.72
8.1.230.0070.00421.21
8.1.220.0000.00818.16
8.1.210.0000.00819.01
8.1.200.0080.00017.48
8.1.190.0030.00517.65
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0070.00019.09
8.1.150.0000.00818.73
8.1.140.0080.00017.64
8.1.130.0000.00718.07
8.1.120.0100.00017.67
8.1.110.0030.00517.68
8.1.100.0030.00617.66
8.1.90.0000.00817.66
8.1.80.0040.00417.79
8.1.70.0070.00017.73
8.1.60.0050.00317.80
8.1.50.0000.00817.79
8.1.40.0030.00617.82
8.1.30.0000.00917.80
8.1.20.0040.00417.89
8.1.10.0030.00517.68
8.1.00.0080.00017.82
8.0.300.0000.00920.33
8.0.290.0030.00617.00
8.0.280.0000.00718.63
8.0.270.0050.00317.43
8.0.260.0000.00617.12
8.0.250.0000.00717.28
8.0.240.0050.00517.28
8.0.230.0050.00217.11
8.0.220.0030.00317.02
8.0.210.0000.00717.25
8.0.200.0030.00317.32
8.0.190.0000.00717.39
8.0.180.0040.00417.30
8.0.170.0000.00817.24
8.0.160.0050.00217.08
8.0.150.0000.00717.07
8.0.140.0070.00017.11
8.0.130.0060.00013.84
8.0.120.0060.00317.18
8.0.110.0000.00817.27
8.0.100.0000.00717.14
8.0.90.0070.00017.09
8.0.80.0060.00917.28
8.0.70.0000.00917.28
8.0.60.0000.00717.18
8.0.50.0000.00717.34
8.0.30.0120.00817.37
8.0.20.0140.00517.40
8.0.10.0000.00817.20
8.0.00.0120.00616.86
7.4.330.0030.00315.18
7.4.320.0030.00316.75
7.4.300.0000.00616.84
7.4.290.0000.00716.75
7.4.280.0000.00716.82
7.4.270.0050.00316.71
7.4.260.0050.00013.66
7.4.250.0040.00416.74
7.4.240.0040.00416.63
7.4.230.0040.00416.58
7.4.220.0070.01416.68
7.4.210.0040.01116.85
7.4.200.0000.00716.97
7.4.190.0000.00716.93
7.4.160.0070.01116.78
7.4.150.0170.00017.40
7.4.140.0090.01117.86
7.4.130.0080.01016.77
7.4.120.0090.00816.84
7.4.110.0170.00716.78
7.4.100.0110.01116.64
7.4.90.0170.00816.62
7.4.80.0090.00919.39
7.4.70.0100.00616.70
7.4.60.0030.01516.78
7.4.50.0030.00516.68
7.4.40.0150.00322.52
7.4.30.0100.01016.57
7.3.330.0030.00313.19
7.3.320.0050.00013.43
7.3.310.0000.00716.25
7.3.300.0030.00316.44
7.3.290.0060.00916.48
7.3.280.0120.00516.46
7.3.270.0120.00617.40
7.3.260.0120.00818.24
7.3.250.0090.01116.64
7.3.240.0070.01016.59
7.3.230.0120.00616.43
7.3.210.0090.00916.59
7.3.200.0110.01116.70
7.3.190.0070.01516.65
7.3.180.0030.01516.50
7.3.170.0080.00816.58
7.3.160.0100.00616.49
7.2.330.0030.01416.39
7.2.320.0180.00316.50
7.2.310.0120.00616.24
7.2.300.0070.01016.58
7.2.290.0030.01616.51
5.4.130.0140.04912.05
5.4.120.0120.04412.01
5.4.110.0150.05312.01
5.4.100.0100.04512.01
5.4.90.0140.04812.01
5.4.80.0120.05212.01
5.4.70.0130.04612.01
5.4.60.0120.04512.00
5.4.50.0090.04712.00
5.4.40.0120.04612.00
5.4.30.0100.05311.99
5.4.20.0110.04711.99
5.4.10.0140.05411.99
5.4.00.0140.05011.48
5.3.230.0150.05312.71
5.3.220.0120.04812.68
5.3.210.0130.05012.68
5.3.200.0120.04612.68
5.3.190.0120.04812.67
5.3.180.0110.04612.67
5.3.170.0100.04912.67
5.3.160.0110.04712.67
5.3.150.0100.05112.67
5.3.140.0100.05012.66
5.3.130.0130.05012.66
5.3.120.0150.06012.66
5.3.110.0110.05212.66
5.3.100.0090.05112.12
5.3.90.0120.04712.08
5.3.80.0110.04712.08
5.3.70.0130.04612.08
5.3.60.0150.05512.06
5.3.50.0110.04912.00
5.3.40.0100.04912.00
5.3.30.0120.04711.95
5.3.20.0110.04511.73
5.3.10.0100.04811.69
5.3.00.0120.04511.68

preferences:
44.29 ms | 401 KiB | 5 Q