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($xml); 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.0110.00417.13
8.3.50.0100.00717.62
8.3.40.0070.00718.97
8.3.30.0040.01119.09
8.3.20.0030.00619.03
8.3.10.0030.00620.82
8.3.00.0060.00319.75
8.2.180.0030.01017.13
8.2.170.0110.00422.96
8.2.160.0060.00921.44
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0090.00021.20
8.2.100.0000.01118.22
8.2.90.0000.00819.73
8.2.80.0000.00719.59
8.2.70.0030.00517.88
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0080.00018.27
8.2.30.0100.00018.15
8.2.20.0000.00817.91
8.2.10.0040.00417.99
8.2.00.0030.00517.96
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0120.00626.35
8.1.250.0000.00728.09
8.1.240.0060.00322.67
8.1.230.0070.00821.10
8.1.220.0030.00518.05
8.1.210.0000.00919.21
8.1.200.0030.00817.48
8.1.190.0030.00617.78
8.1.180.0080.00018.10
8.1.170.0030.00619.01
8.1.160.0040.00419.23
8.1.150.0000.00718.73
8.1.140.0050.00217.72
8.1.130.0040.00418.07
8.1.120.0000.00817.83
8.1.110.0000.00817.64
8.1.100.0000.00717.71
8.1.90.0070.00017.54
8.1.80.0050.00217.53
8.1.70.0040.00417.58
8.1.60.0000.00717.79
8.1.50.0020.00517.74
8.1.40.0000.00917.82
8.1.30.0000.00817.86
8.1.20.0040.00417.82
8.1.10.0070.00017.63
8.1.00.0060.00317.74
8.0.300.0000.00820.29
8.0.290.0040.00417.00
8.0.280.0090.00018.68
8.0.270.0070.00017.54
8.0.260.0030.00317.09
8.0.250.0070.00017.27
8.0.240.0070.00017.30
8.0.230.0000.00717.14
8.0.220.0030.00317.29
8.0.210.0000.00717.30
8.0.200.0000.00717.20
8.0.190.0070.00017.29
8.0.180.0000.00817.22
8.0.170.0040.00417.13
8.0.160.0050.00217.09
8.0.150.0050.00317.11
8.0.140.0040.00717.19
8.0.130.0000.00613.66
8.0.120.0000.00817.15
8.0.110.0040.00417.23
8.0.100.0040.00417.14
8.0.90.0020.00517.35
8.0.80.0140.00017.25
8.0.70.0070.00017.28
8.0.60.0050.00317.13
8.0.50.0040.00417.04
8.0.30.0130.00917.38
8.0.20.0110.00917.19
8.0.10.0040.00417.24
8.0.00.0130.00517.04
7.4.330.0030.00313.37
7.4.320.0030.00316.88
7.4.300.0060.00016.74
7.4.290.0030.00316.80
7.4.280.0050.00216.76
7.4.270.0000.00716.66
7.4.260.0030.00313.57
7.4.250.0000.00816.67
7.4.240.0030.00316.86
7.4.230.0030.00316.58
7.4.220.0070.01116.80
7.4.210.0050.00916.84
7.4.200.0000.00816.81
7.4.190.0000.00716.85
7.4.160.0140.00916.50
7.4.150.0090.01016.75
7.4.140.0110.01016.79
7.4.130.0120.00616.76
7.4.120.0060.01116.81
7.4.110.0030.01316.88
7.4.100.0100.00716.82
7.4.90.0290.02616.89
7.4.80.0070.01116.81
7.4.70.0110.00816.85
7.4.60.0070.01116.83
7.4.50.0000.00916.64
7.4.40.0040.01116.84
7.4.30.0120.00816.73
7.3.330.0030.00313.30
7.3.320.0050.00013.25
7.3.310.0080.00016.27
7.3.300.0060.00016.48
7.3.290.0120.00316.43
7.3.280.0060.01216.46
7.3.270.0150.00616.50
7.3.260.0060.01316.54
7.3.250.0110.00616.68
7.3.240.0090.00916.49
7.3.230.0130.01016.54
7.3.210.0030.01316.44
7.3.200.0110.00719.39
7.3.190.0090.00916.62
7.3.180.0090.00916.64
7.3.170.0030.01416.71
7.3.160.0130.00316.60
7.2.330.0130.01016.38
7.2.320.0080.00816.27
7.2.310.0120.01216.47
7.2.300.0070.01016.23
7.2.290.0140.00416.20
5.4.130.0000.05016.48
5.4.120.0030.03316.28
5.4.110.0070.07316.61
5.4.100.0100.07016.28
5.4.90.0070.05716.37
5.4.80.0000.04716.31
5.4.70.0130.04316.38
5.4.60.0070.04716.35
5.4.50.0070.06716.31
5.4.40.0000.04016.21
5.4.30.0030.03716.33
5.4.20.0030.04016.21
5.4.10.0030.04716.23
5.4.00.0030.07715.77
5.3.230.0100.03014.42
5.3.220.0000.08314.39
5.3.210.0100.04714.50
5.3.200.0070.07014.50
5.3.190.0070.07014.45
5.3.180.0030.04714.66
5.3.170.0130.04714.50
5.3.160.0130.06714.35
5.3.150.0130.04714.57
5.3.140.0170.06314.48
5.3.130.0030.04314.53
5.3.120.0030.04714.49
5.3.110.0030.03714.49
5.3.100.0070.07014.00
5.3.90.0030.04713.81
5.3.80.0030.07713.95
5.3.70.0070.05713.95
5.3.60.0000.05013.95
5.3.50.0070.03713.77
5.3.40.0000.05013.84
5.3.30.0000.04713.83
5.3.20.0070.04013.66
5.3.10.0100.04313.58
5.3.00.0030.07313.46

preferences:
36.52 ms | 401 KiB | 5 Q