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 $i=$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.70.0070.01417.13
8.3.60.0130.00616.88
8.3.50.0120.01017.82
8.3.40.0080.00818.92
8.3.30.0180.00019.04
8.3.20.0040.00418.98
8.3.10.0060.00320.91
8.3.00.0090.00019.63
8.2.180.0140.00716.88
8.2.170.0030.01222.96
8.2.160.0100.00320.60
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00721.20
8.2.110.0090.01121.49
8.2.100.0040.00818.16
8.2.90.0000.00819.74
8.2.80.0080.00019.65
8.2.70.0030.00517.88
8.2.60.0000.00818.41
8.2.50.0040.00418.07
8.2.40.0080.00018.17
8.2.30.0000.00818.32
8.2.20.0060.00317.91
8.2.10.0040.00417.89
8.2.00.0030.00518.11
8.1.280.0060.00925.92
8.1.270.0050.00324.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00922.59
8.1.230.0080.00421.16
8.1.220.0090.00018.03
8.1.210.0030.00519.13
8.1.200.0030.00617.50
8.1.190.0040.00417.79
8.1.180.0030.00518.10
8.1.170.0000.00819.21
8.1.160.0000.00719.12
8.1.150.0050.00318.91
8.1.140.0000.00717.75
8.1.130.0040.00418.16
8.1.120.0070.00017.77
8.1.110.0000.00717.58
8.1.100.0050.00317.68
8.1.90.0050.00217.65
8.1.80.0040.00417.75
8.1.70.0040.00417.62
8.1.60.0060.00317.82
8.1.50.0000.00917.80
8.1.40.0030.00517.71
8.1.30.0040.00418.00
8.1.20.0000.00817.90
8.1.10.0000.00717.65
8.1.00.0080.00017.64
8.0.300.0080.00020.18
8.0.290.0040.00416.88
8.0.280.0040.00418.71
8.0.270.0030.00317.52
8.0.260.0040.00417.13
8.0.250.0060.00317.30
8.0.240.0000.00717.22
8.0.230.0080.00017.18
8.0.220.0000.00717.14
8.0.210.0070.00017.14
8.0.200.0060.00017.04
8.0.190.0030.00317.32
8.0.180.0060.00317.22
8.0.170.0090.00017.09
8.0.160.0080.00017.22
8.0.150.0080.00017.19
8.0.140.0000.00817.00
8.0.130.0050.00013.57
8.0.120.0040.00417.07
8.0.110.0040.00417.24
8.0.100.0080.00017.10
8.0.90.0070.00017.24
8.0.80.0080.00817.17
8.0.70.0050.00317.12
8.0.60.0000.00717.25
8.0.50.0040.00417.09
8.0.30.0090.00917.26
8.0.20.0050.01417.26
8.0.10.0000.00717.13
8.0.00.0050.01617.10
7.4.330.0000.00513.36
7.4.320.0050.00216.80
7.4.300.0000.00616.83
7.4.290.0000.00816.67
7.4.280.0030.00616.77
7.4.270.0000.00716.77
7.4.260.0030.00313.64
7.4.250.0070.00016.77
7.4.240.0050.00316.70
7.4.230.0040.00416.77
7.4.220.0070.01816.65
7.4.210.0060.00916.73
7.4.200.0060.00316.70
7.4.190.0070.00016.88
7.4.160.0100.00716.66
7.4.150.0140.00316.74
7.4.140.0060.01316.73
7.4.130.0120.00816.74
7.4.120.0040.01216.71
7.4.110.0140.00316.82
7.4.100.0060.01216.73
7.4.90.0110.01116.82
7.4.80.0000.01819.39
7.4.70.0110.00516.75
7.4.60.0060.01016.86
7.4.50.0090.00016.71
7.4.40.0060.00616.67
7.4.30.0130.00316.98
7.4.10.0080.01115.70
7.4.00.0090.00615.55
7.3.330.0030.00313.49
7.3.320.0040.00413.52
7.3.310.0000.00716.47
7.3.300.0000.00816.46
7.3.290.0120.00616.48
7.3.280.0080.00816.44
7.3.270.0120.00616.49
7.3.260.0070.01116.78
7.3.250.0060.01216.50
7.3.240.0130.00316.76
7.3.230.0130.00316.62
7.3.210.0070.01016.63
7.3.200.0110.00616.59
7.3.190.0030.01416.55
7.3.180.0030.01416.71
7.3.170.0100.01016.59
7.3.160.0090.00616.64
7.3.130.0100.00915.44
7.3.120.0100.00815.34
7.3.110.0100.00815.44
7.3.100.0070.00715.50
7.3.90.0060.00815.33
7.3.80.0080.00515.35
7.3.70.0070.00715.42
7.3.60.0070.00815.37
7.3.50.0060.00815.33
7.3.40.0090.00715.41
7.3.30.0090.00715.39
7.3.20.0040.00817.33
7.3.10.0050.00917.08
7.3.00.0050.00817.16
7.2.330.0000.01716.36
7.2.320.0100.00616.32
7.2.310.0170.00616.20
7.2.300.0170.00016.21
7.2.290.0100.00716.51
7.2.260.0090.00715.32
7.2.250.0070.01115.26
7.2.240.0050.01015.43
7.2.230.0030.01315.42
7.2.220.0060.00815.20
7.2.210.0060.00615.39
7.2.200.0090.00515.41
7.2.190.0050.01215.34
7.2.180.0090.00615.27
7.2.170.0110.00615.22
7.2.160.0070.00915.29
7.2.150.0100.00617.15
7.2.140.0060.00717.07
7.2.130.0080.00617.27
7.2.120.0040.01117.29
7.2.110.0100.00717.13
7.2.100.0050.01017.07
7.2.90.0040.00717.29
7.2.80.0090.00617.11
7.2.70.0100.00917.23
7.2.60.0070.01117.11
7.2.50.0080.00917.29
7.2.40.0090.00717.22
7.2.30.0060.00917.25
7.2.20.0090.00617.14
7.2.10.0080.00717.28
7.2.00.0040.00817.13
7.1.330.0050.00916.01
7.1.320.0080.00616.04
7.1.310.0040.00716.15
7.1.300.0030.01016.18
7.1.290.0050.00915.98
7.1.280.0050.01016.06
7.1.270.0060.00915.99
7.1.260.0030.00716.13
7.1.250.0060.00616.03
7.1.240.0060.00816.19
7.1.230.0080.00616.01
7.1.220.0070.00616.06
7.1.210.0030.00915.96
7.1.200.0050.00616.06
7.1.190.0090.00816.05
7.1.180.0090.00616.06
7.1.170.0040.01316.06
7.1.160.0070.00715.93
7.1.150.0070.00716.11
7.1.140.0080.00416.03
7.1.130.0040.00915.94
7.1.120.0040.01016.07
7.1.110.0040.00616.07
7.1.100.0050.01016.01
7.1.90.0050.00716.09
7.1.80.0070.00816.05
7.1.70.0050.00916.13
7.1.60.0030.00716.08
7.1.50.0040.00915.99
7.1.40.0090.00516.14
7.1.30.0040.00915.91
7.1.20.0050.01116.16
7.1.10.0030.01116.07
7.1.00.0050.00816.13
7.0.330.0040.01015.71
7.0.320.0060.00715.83
7.0.310.0050.00715.77
7.0.300.0030.01015.79
7.0.290.0070.00815.61
7.0.280.0060.00615.72
7.0.270.0040.00715.72
7.0.260.0080.00715.92
7.0.250.0050.00815.86
7.0.240.0030.01015.81
7.0.230.0080.00615.94
7.0.220.0070.00815.79
7.0.210.0070.00815.59
7.0.200.0060.00615.78
7.0.190.0050.01115.81
7.0.180.0050.00715.74
7.0.170.0050.00715.83
7.0.160.0020.01015.84
7.0.150.0050.01015.76
7.0.140.0050.00815.79
7.0.130.0060.00615.75
7.0.120.0040.00715.73
7.0.110.0070.00815.61
7.0.100.0090.00615.65
7.0.90.0090.00515.72
7.0.80.0050.00715.87
7.0.70.0060.00815.75
7.0.60.0080.00615.74
7.0.50.0080.00515.83
7.0.40.0060.00713.76
7.0.30.0040.00813.83
7.0.20.0030.00913.79
7.0.10.0040.01013.88
7.0.00.0070.00613.77
5.6.400.0040.00914.64
5.6.390.0090.00514.76
5.6.380.0100.00414.77
5.6.370.0060.01214.60
5.6.360.0090.00314.52
5.6.350.0070.00814.83
5.6.340.0080.00614.81
5.6.330.0030.00714.74
5.6.320.0030.01114.52
5.6.310.0040.00914.68
5.6.300.0060.00714.67
5.6.290.0060.00714.49
5.6.280.0050.00714.63
5.6.270.0060.00914.54
5.6.260.0070.00714.65
5.6.250.0070.00914.54
5.6.240.0080.00614.75
5.6.230.0050.00614.61
5.6.220.0070.00814.62
5.6.210.0100.00514.52
5.6.200.0060.00814.54
5.6.190.0050.00614.58
5.6.180.0070.00714.64
5.6.170.0090.00614.56
5.6.160.0060.00814.59
5.6.150.0010.01114.49
5.6.140.0090.00314.58
5.6.130.0080.00814.58
5.6.120.0030.01014.63
5.6.110.0040.01014.56
5.6.100.0090.00414.62
5.6.90.0050.01014.63
5.6.80.0060.00714.67
5.6.70.0090.00514.46
5.6.60.0060.00814.51
5.6.50.0070.00714.40
5.6.40.0050.00814.55
5.6.30.0090.00514.61
5.6.20.0070.00614.54
5.6.10.0050.00814.47
5.6.00.0080.00714.63
5.5.380.0060.01014.45
5.5.370.0030.00914.53
5.5.360.0090.00514.34
5.5.350.0080.00614.56
5.5.340.0060.00714.59
5.5.330.0060.00514.57
5.5.320.0050.01114.61
5.5.310.0060.00814.48
5.5.300.0040.00914.58
5.5.290.0040.00914.66
5.5.280.0030.01014.49
5.5.270.0010.01214.42
5.5.260.0060.00914.56
5.5.250.0050.00914.38
5.5.240.0070.00614.35
5.5.230.0040.01014.24
5.5.220.0100.00614.55
5.5.210.0080.00314.44
5.5.200.0060.00914.27
5.5.190.0060.00814.64
5.5.180.0040.00914.49
5.5.170.0070.00514.37
5.5.160.0070.00514.49
5.5.150.0040.00714.48
5.5.140.0070.00614.54
5.5.130.0080.00814.39
5.5.120.0050.00614.46
5.5.110.0040.00914.37
5.5.100.0060.00814.38
5.5.90.0050.01014.54
5.5.80.0050.01014.32
5.5.70.0070.00914.30
5.5.60.0040.01014.32
5.5.50.0050.01014.54
5.5.40.0000.01214.60
5.5.30.0080.00614.45
5.5.20.0060.00914.32
5.5.10.0090.00814.44
5.5.00.0070.00514.50
5.4.450.0020.00811.63
5.4.440.0030.00911.64
5.4.430.0040.00711.63
5.4.420.0020.00911.63
5.4.410.0060.00411.63
5.4.400.0020.00611.65
5.4.390.0070.00311.63
5.4.380.0050.00511.63
5.4.370.0030.00411.63
5.4.360.0040.00711.63
5.4.350.0060.00511.66
5.4.340.0000.00911.66
5.4.330.0040.00711.63
5.4.320.0070.00511.66
5.4.310.0040.01011.63
5.4.300.0020.00711.63
5.4.290.0050.00511.63
5.4.280.0040.00711.63
5.4.270.0050.00511.63
5.4.260.0030.00711.67
5.4.250.0040.00711.63
5.4.240.0090.00311.65
5.4.230.0040.00611.63
5.4.220.0030.00611.63
5.4.210.0060.00411.63
5.4.200.0040.00611.68
5.4.190.0030.00611.63
5.4.180.0030.00911.63
5.4.170.0040.00611.63
5.4.160.0010.01011.63
5.4.150.0050.00411.63
5.4.140.0080.00311.63
5.4.130.0040.01612.86
5.4.120.0060.02312.82
5.4.110.0080.01712.79
5.4.100.0070.02112.82
5.4.90.0060.02312.85
5.4.80.0040.01812.84
5.4.70.0020.02412.81
5.4.60.0080.02112.80
5.4.50.0040.01612.82
5.4.40.0050.02512.84
5.4.30.0040.02412.83
5.4.20.0060.01412.79
5.4.10.0050.01312.82
5.4.00.0050.02312.71
5.3.290.0060.00711.76
5.3.280.0070.00711.72
5.3.270.0070.00711.73
5.3.260.0050.00711.72
5.3.250.0030.00711.74
5.3.240.0030.00711.72
5.3.230.0070.02112.39
5.3.220.0050.01412.37
5.3.210.0060.02112.42
5.3.200.0030.02412.42
5.3.190.0030.02612.50
5.3.180.0050.02112.42
5.3.170.0040.02512.46
5.3.160.0030.02012.48
5.3.150.0040.02312.48
5.3.140.0040.02512.50
5.3.130.0060.01412.46
5.3.120.0050.02112.50
5.3.110.0050.02112.48
5.3.100.0060.02212.36
5.3.90.0020.01512.42
5.3.80.0020.01712.27
5.3.70.0040.01612.29
5.3.60.0060.01812.26
5.3.50.0070.01412.26
5.3.40.0030.01812.31
5.3.30.0070.01912.20
5.3.20.0040.01412.21
5.3.10.0030.01612.12
5.3.00.0050.02012.09

preferences:
53.27 ms | 401 KiB | 5 Q