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=$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.0120.00918.77
8.3.50.0080.01022.14
8.3.40.0180.00319.03
8.3.30.0040.01119.20
8.3.20.0040.00420.71
8.3.10.0040.00422.17
8.3.00.0030.00622.68
8.2.180.0120.00317.13
8.2.170.0170.00722.96
8.2.160.0040.01121.03
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00818.00
8.2.110.0060.00322.32
8.2.100.0060.00618.16
8.2.90.0050.00319.47
8.2.80.0000.00818.03
8.2.70.0000.00818.00
8.2.60.0030.00518.05
8.2.50.0000.00818.07
8.2.40.0040.00418.47
8.2.30.0030.00618.21
8.2.20.0000.00717.81
8.2.10.0030.00519.77
8.2.00.0030.00718.02
8.1.280.0090.00625.92
8.1.270.0080.00023.94
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0030.00624.10
8.1.230.0030.00719.32
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.01017.60
8.1.190.0050.00317.78
8.1.180.0040.00418.10
8.1.170.0040.00418.94
8.1.160.0000.00722.22
8.1.150.0040.00418.91
8.1.140.0050.00517.65
8.1.130.0000.00718.15
8.1.120.0000.00817.68
8.1.110.0000.00717.64
8.1.100.0030.00517.73
8.1.90.0000.00817.62
8.1.80.0050.00217.70
8.1.70.0070.00017.73
8.1.60.0050.00317.68
8.1.50.0030.00517.81
8.1.40.0040.00417.86
8.1.30.0000.00817.83
8.1.20.0030.00617.89
8.1.10.0000.00817.72
8.1.00.0030.00517.78
8.0.300.0040.00418.77
8.0.290.0040.00417.42
8.0.280.0000.00718.64
8.0.270.0000.00717.63
8.0.260.0030.00317.08
8.0.250.0040.00417.23
8.0.240.0040.00417.17
8.0.230.0070.00017.35
8.0.220.0000.00717.30
8.0.210.0000.00717.30
8.0.200.0060.00017.16
8.0.190.0000.00717.32
8.0.180.0000.00717.28
8.0.170.0040.00417.14
8.0.160.0080.00017.07
8.0.150.0040.00417.21
8.0.140.0030.00617.13
8.0.130.0000.00613.69
8.0.120.0040.00417.28
8.0.110.0040.00417.27
8.0.100.0040.00417.08
8.0.90.0050.00316.96
8.0.80.0060.00917.23
8.0.70.0040.00417.10
8.0.60.0070.00017.16
8.0.50.0000.00817.23
8.0.30.0060.01317.41
8.0.20.0070.01517.43
8.0.10.0040.00417.30
8.0.00.0120.00617.02
7.4.330.0030.00315.38
7.4.320.0030.00616.77
7.4.300.0000.00716.81
7.4.290.0060.00316.80
7.4.280.0000.00716.84
7.4.270.0040.00416.77
7.4.260.0030.00316.65
7.4.250.0040.00416.63
7.4.240.0020.00616.73
7.4.230.0000.00716.80
7.4.220.0090.00916.87
7.4.210.0070.00816.79
7.4.200.0000.00716.73
7.4.190.0040.00416.83
7.4.160.0100.00616.80
7.4.150.0110.01417.40
7.4.140.0110.01017.86
7.4.130.0080.01016.88
7.4.120.0100.01016.74
7.4.110.0110.00716.79
7.4.100.0070.01016.71
7.4.90.0120.00516.79
7.4.80.0030.01619.39
7.4.70.0060.01216.64
7.4.60.0060.01016.79
7.4.50.0050.00016.75
7.4.40.0030.01422.77
7.4.30.0130.00316.90
7.4.10.0060.01115.16
7.4.00.0040.01215.02
7.3.330.0000.00513.43
7.3.320.0030.00313.30
7.3.310.0050.00316.32
7.3.300.0070.00016.41
7.3.290.0030.01016.53
7.3.280.0090.00916.42
7.3.270.0100.01417.40
7.3.260.0140.00316.50
7.3.250.0050.01216.63
7.3.240.0040.01416.60
7.3.230.0030.01516.48
7.3.210.0070.01116.63
7.3.200.0060.01219.39
7.3.190.0130.00616.68
7.3.180.0100.00616.46
7.3.170.0080.00816.65
7.3.160.0040.01116.76
7.3.130.0090.00914.70
7.3.120.0090.00814.95
7.3.110.0030.01314.91
7.3.100.0050.00914.76
7.3.90.0060.00814.86
7.3.80.0040.01114.89
7.3.70.0030.00814.81
7.3.60.0030.01014.82
7.3.50.0010.01014.82
7.3.40.0020.01114.73
7.3.30.0060.00914.65
7.3.20.0050.01216.88
7.3.10.0060.01116.72
7.3.00.0050.01116.75
7.2.330.0090.00916.36
7.2.320.0150.00916.37
7.2.310.0130.00316.52
7.2.300.0060.01216.38
7.2.290.0040.01216.07
7.2.260.0060.01114.81
7.2.250.0080.00914.76
7.2.240.0060.00914.90
7.2.230.0020.01314.64
7.2.220.0120.00614.88
7.2.210.0020.01414.87
7.2.200.0070.00914.74
7.2.190.0070.00914.87
7.2.180.0050.01214.91
7.2.170.0070.00614.89
7.2.160.0060.00814.83
7.2.150.0070.00916.79
7.2.140.0030.00816.72
7.2.130.0020.01316.80
7.2.120.0020.01316.61
7.2.110.0030.01016.70
7.2.100.0030.01316.64
7.2.90.0030.00816.73
7.2.80.0030.00816.59
7.2.70.0040.00916.65
7.2.60.0080.00316.61
7.2.50.0080.00616.78
7.2.40.0030.01016.73
7.2.30.0050.00816.93
7.2.20.0080.00516.77
7.2.10.0060.00916.62
7.2.00.0070.00716.61
7.1.330.0030.01015.71
7.1.320.0110.00615.67
7.1.310.0070.00715.73
7.1.300.0080.00815.56
7.1.290.0090.00615.76
7.1.280.0030.01015.36
7.1.270.0030.01015.62
7.1.260.0020.01015.64
7.1.250.0050.00715.68
7.1.240.0050.00715.58
7.1.230.0080.00415.65
7.1.220.0040.01115.74
7.1.210.0050.00715.67
7.1.200.0100.00315.40
7.1.190.0090.00515.69
7.1.180.0080.00615.52
7.1.170.0050.00715.50
7.1.160.0020.01015.50
7.1.150.0060.00615.46
7.1.140.0010.01215.71
7.1.130.0050.00815.54
7.1.120.0040.00815.70
7.1.110.0060.00615.54
7.1.100.0100.00415.50
7.1.90.0100.00415.62
7.1.80.0040.00915.60
7.1.70.0050.00515.60
7.1.60.0050.00915.70
7.1.50.0050.00915.56
7.1.40.0060.00615.62
7.1.30.0060.00815.71
7.1.20.0030.01115.64
7.1.10.0030.00915.48
7.1.00.0040.01015.49
7.0.330.0050.00915.28
7.0.320.0050.00815.34
7.0.310.0090.00515.31
7.0.300.0030.00815.19
7.0.290.0060.00615.24
7.0.280.0070.00515.39
7.0.270.0050.00715.19
7.0.260.0020.01115.26
7.0.250.0050.00515.29
7.0.240.0040.01115.27
7.0.230.0040.00815.33
7.0.220.0020.01215.34
7.0.210.0040.00915.20
7.0.200.0050.00515.34
7.0.190.0020.00915.21
7.0.180.0040.00715.26
7.0.170.0070.00815.25
7.0.160.0090.00515.33
7.0.150.0060.00615.33
7.0.140.0090.00315.20
7.0.130.0070.00715.37
7.0.120.0050.01115.32
7.0.110.0050.00615.14
7.0.100.0070.00715.14
7.0.90.0040.00915.25
7.0.80.0020.00815.22
7.0.70.0050.00715.08
7.0.60.0000.01215.36
7.0.50.0030.00615.21
7.0.40.0040.00613.32
7.0.30.0070.00813.25
7.0.20.0060.00713.31
7.0.10.0070.00613.32
7.0.00.0030.00813.23
5.6.400.0040.00614.11
5.6.390.0020.00814.37
5.6.380.0000.01114.27
5.6.370.0050.00814.01
5.6.360.0070.00713.99
5.6.350.0050.00514.25
5.6.340.0070.00714.22
5.6.330.0090.00514.15
5.6.320.0040.00814.20
5.6.310.0020.01114.09
5.6.300.0080.00413.98
5.6.290.0090.00414.30
5.6.280.0020.01314.19
5.6.270.0090.00614.10
5.6.260.0070.00714.11
5.6.250.0090.00514.20
5.6.240.0050.00814.08
5.6.230.0080.00814.23
5.6.220.0040.00914.06
5.6.210.0030.01014.05
5.6.200.0070.00514.12
5.6.190.0060.00714.20
5.6.180.0000.01114.05
5.6.170.0020.01114.25
5.6.160.0050.00514.12
5.6.150.0050.01114.14
5.6.140.0040.01114.09
5.6.130.0040.00514.19
5.6.120.0060.00814.26
5.6.110.0080.00614.24
5.6.100.0050.00813.99
5.6.90.0080.00314.09
5.6.80.0060.00714.07
5.6.70.0020.01214.17
5.6.60.0050.00714.17
5.6.50.0060.01014.05
5.6.40.0030.01214.24
5.6.30.0040.00814.10
5.6.20.0090.00613.99
5.6.10.0050.00713.99
5.6.00.0130.00014.12
5.5.380.0020.01213.98
5.5.370.0070.01014.01
5.5.360.0070.00714.18
5.5.350.0030.00814.01
5.5.340.0070.00614.08
5.5.330.0060.00613.82
5.5.320.0040.00914.01
5.5.310.0060.00613.89
5.5.300.0050.00714.19
5.5.290.0080.00514.18
5.5.280.0050.00714.16
5.5.270.0040.00914.30
5.5.260.0030.00813.96
5.5.250.0060.00613.76
5.5.240.0020.00914.08
5.5.230.0080.00813.83
5.5.220.0070.00513.88
5.5.210.0020.00813.74
5.5.200.0080.00513.94
5.5.190.0070.00413.88
5.5.180.0110.00514.08
5.5.170.0060.00313.94
5.5.160.0070.00613.86
5.5.150.0040.01013.88
5.5.140.0030.01014.01
5.5.130.0090.00713.79
5.5.120.0030.01013.98
5.5.110.0100.00313.99
5.5.100.0050.00513.97
5.5.90.0040.00713.92
5.5.80.0050.00713.99
5.5.70.0050.01014.10
5.5.60.0050.00713.98
5.5.50.0030.00913.72
5.5.40.0070.00313.85
5.5.30.0070.00414.05
5.5.20.0040.01013.79
5.5.10.0030.00614.00
5.5.00.0080.00513.95
5.4.450.0040.00311.59
5.4.440.0040.00511.69
5.4.430.0020.00711.44
5.4.420.0050.00511.55
5.4.410.0030.00711.64
5.4.400.0050.00311.54
5.4.390.0040.00511.66
5.4.380.0030.00711.51
5.4.370.0050.00311.58
5.4.360.0020.00811.57
5.4.350.0030.00511.42
5.4.340.0030.00811.59
5.4.330.0030.00511.51
5.4.320.0080.00311.54
5.4.310.0060.00211.52
5.4.300.0080.00211.49
5.4.290.0020.01211.59
5.4.280.0050.00611.53
5.4.270.0050.00611.63
5.4.260.0020.00811.39
5.4.250.0060.00411.54
5.4.240.0010.00911.51
5.4.230.0050.00511.57
5.4.220.0030.00611.58
5.4.210.0030.00511.59
5.4.200.0030.00711.39
5.4.190.0050.00711.54
5.4.180.0010.00811.55
5.4.170.0060.00311.65
5.4.160.0000.01211.52
5.4.150.0050.00711.52
5.4.140.0040.00411.52
5.4.130.1380.01413.13
5.4.120.1290.01613.21
5.4.110.0770.01413.19
5.4.100.0060.02313.18
5.4.90.0020.02113.15
5.4.80.1530.01813.09
5.4.70.1510.01713.22
5.4.60.1500.01813.26
5.4.50.1320.01613.22
5.4.40.1280.01813.25
5.4.30.1340.01313.12
5.4.20.1290.01913.21
5.4.10.1290.01813.22
5.4.00.1310.01513.02
5.3.290.0020.00911.29
5.3.280.0010.00711.27
5.3.270.0000.00711.29
5.3.260.0040.00711.27
5.3.250.0020.01011.27
5.3.240.0050.00411.27
5.3.230.1320.01612.31
5.3.220.1340.01212.40
5.3.210.1330.01612.30
5.3.200.0030.01712.31
5.3.190.1450.02012.35
5.3.180.1490.01612.42
5.3.170.1520.01712.37
5.3.160.1230.01612.35
5.3.150.1290.01812.39
5.3.140.1450.01712.34
5.3.130.1280.01612.40
5.3.120.1250.02312.34
5.3.110.1330.01512.34
5.3.100.1380.01612.18
5.3.90.1220.01812.13
5.3.80.1300.01712.16
5.3.70.1330.01512.18
5.3.60.1230.01312.16
5.3.50.1190.01612.15
5.3.40.1270.01412.14
5.3.30.1300.01612.09
5.3.20.1170.02012.08
5.3.10.1280.01312.09
5.3.00.1310.01712.04

preferences:
33.86 ms | 401 KiB | 5 Q