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.0080.00618.81
8.3.50.0120.00622.12
8.3.40.0070.00719.04
8.3.30.0110.00419.39
8.3.20.0040.00420.71
8.3.10.0070.00722.47
8.3.00.0080.00022.84
8.2.180.0120.00316.75
8.2.170.0150.00022.96
8.2.160.0170.00321.05
8.2.150.0060.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0140.00617.88
8.2.110.0040.00420.82
8.2.100.0090.00318.09
8.2.90.0090.00018.00
8.2.80.0040.00418.98
8.2.70.0030.00517.88
8.2.60.0000.00817.84
8.2.50.0000.00818.05
8.2.40.0040.00418.50
8.2.30.0000.00819.65
8.2.20.0070.00017.88
8.2.10.0040.00419.79
8.2.00.0050.00218.11
8.1.280.0120.00325.92
8.1.270.0040.00424.07
8.1.260.0090.00626.35
8.1.250.0040.00428.09
8.1.240.0070.00319.73
8.1.230.0110.00021.13
8.1.220.0070.00218.70
8.1.210.0000.00818.77
8.1.200.0040.00417.78
8.1.190.0030.00617.48
8.1.180.0060.00318.10
8.1.170.0000.00817.62
8.1.160.0000.00819.21
8.1.150.0040.00418.91
8.1.140.0000.00917.66
8.1.130.0030.00318.09
8.1.120.0040.00417.75
8.1.110.0000.00817.73
8.1.100.0030.00417.73
8.1.90.0040.00417.57
8.1.80.0040.00417.55
8.1.70.0000.00817.61
8.1.60.0080.00017.69
8.1.50.0000.00817.69
8.1.40.0080.00017.65
8.1.30.0040.00417.90
8.1.20.0040.00417.80
8.1.10.0000.00817.73
8.1.00.0000.00717.61
8.0.300.0040.00418.77
8.0.290.0030.00516.86
8.0.280.0000.00718.63
8.0.270.0000.00717.50
8.0.260.0000.00617.07
8.0.250.0030.00317.15
8.0.240.0050.00217.17
8.0.230.0030.00317.17
8.0.220.0000.00717.32
8.0.210.0050.00317.20
8.0.200.0000.00717.29
8.0.190.0040.00417.27
8.0.180.0070.00017.20
8.0.170.0030.00317.07
8.0.160.0040.00417.11
8.0.150.0030.00617.15
8.0.140.0080.00017.07
8.0.130.0060.00013.82
8.0.120.0040.00417.25
8.0.110.0040.00417.32
8.0.100.0030.00617.18
8.0.90.0000.00817.10
8.0.80.0130.00317.30
8.0.70.0040.00417.15
8.0.60.0050.00217.18
8.0.50.0070.00017.02
8.0.30.0140.00617.38
8.0.20.0140.00817.44
8.0.10.0030.00517.20
8.0.00.0150.00317.05
7.4.330.0000.00615.50
7.4.320.0050.00216.73
7.4.300.0060.00316.82
7.4.290.0030.00316.88
7.4.280.0020.00516.90
7.4.270.0120.00016.77
7.4.260.0000.00716.80
7.4.250.0080.00016.76
7.4.240.0040.00416.72
7.4.230.0030.00316.73
7.4.220.0150.00616.78
7.4.210.0090.00916.72
7.4.200.0000.00716.67
7.4.190.0070.00016.73
7.4.160.0120.00416.68
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0100.00916.73
7.4.120.0080.01216.80
7.4.110.0040.01416.87
7.4.100.0040.01716.88
7.4.90.0070.01016.73
7.4.80.0040.00616.64
7.4.70.0060.01716.88
7.4.60.0160.00016.81
7.4.50.0000.00616.84
7.4.40.0120.00622.77
7.4.30.0030.01316.68
7.4.10.0040.01315.03
7.4.00.0090.01015.07
7.3.330.0000.00513.21
7.3.320.0000.00613.45
7.3.310.0040.00416.52
7.3.300.0030.00316.49
7.3.290.0040.01116.50
7.3.280.0120.00716.46
7.3.270.0130.01317.40
7.3.260.0030.01616.48
7.3.250.0130.00816.46
7.3.240.0210.00316.50
7.3.230.0070.01316.66
7.3.210.0060.01116.50
7.3.200.0050.01419.39
7.3.190.0060.01016.44
7.3.180.0100.00616.65
7.3.170.0030.01316.44
7.3.160.0030.01316.41
7.3.130.0030.01414.98
7.3.120.0030.01514.77
7.3.110.0100.00814.88
7.3.100.0060.00614.90
7.3.90.0090.00614.86
7.3.80.0050.00514.89
7.3.70.0040.00614.69
7.3.60.0060.00614.95
7.3.50.0000.01014.76
7.3.40.0020.01314.68
7.3.30.0060.00614.67
7.3.20.0040.01016.77
7.3.10.0070.00516.66
7.3.00.0130.00216.50
7.2.330.0110.00616.43
7.2.320.0100.00716.54
7.2.310.0060.01216.29
7.2.300.0110.00716.43
7.2.290.0090.00916.21
7.2.260.0080.00814.89
7.2.250.0070.01114.70
7.2.240.0070.00814.65
7.2.230.0050.01114.77
7.2.220.0050.00814.99
7.2.210.0050.00714.93
7.2.200.0070.00914.84
7.2.190.0040.01014.84
7.2.180.0070.00714.71
7.2.170.0050.00714.76
7.2.160.0040.01214.73
7.2.150.0090.00516.64
7.2.140.0060.00616.49
7.2.130.0000.01416.62
7.2.120.0040.00716.67
7.2.110.0000.01316.69
7.2.100.0070.00616.57
7.2.90.0020.01116.51
7.2.80.0080.00616.65
7.2.70.0070.00416.63
7.2.60.0100.00516.55
7.2.50.0080.00816.79
7.2.40.0050.00616.52
7.2.30.0000.01216.53
7.2.20.0050.00816.85
7.2.10.0110.00416.75
7.2.00.0080.00316.70
7.1.330.0060.00815.48
7.1.320.0040.01015.59
7.1.310.0080.00615.64
7.1.300.0060.00715.53
7.1.290.0050.00715.60
7.1.280.0050.00815.47
7.1.270.0090.00615.54
7.1.260.0050.00715.55
7.1.250.0050.00615.50
7.1.240.0080.00515.54
7.1.230.0060.00715.53
7.1.220.0000.01215.55
7.1.210.0080.00315.40
7.1.200.0090.00515.48
7.1.190.0060.00815.46
7.1.180.0080.00515.44
7.1.170.0100.00315.65
7.1.160.0080.00415.69
7.1.150.0090.00715.60
7.1.140.0030.01115.63
7.1.130.0080.00315.52
7.1.120.0070.00315.64
7.1.110.0090.00215.43
7.1.100.0070.00715.62
7.1.90.0010.01015.50
7.1.80.0100.00415.51
7.1.70.0060.00815.67
7.1.60.0030.00815.68
7.1.50.0040.00815.71
7.1.40.0060.00615.50
7.1.30.0080.00315.47
7.1.20.0040.01115.48
7.1.10.0020.01015.48
7.1.00.0070.00515.61
7.0.330.0060.00415.22
7.0.320.0070.00415.22
7.0.310.0020.01015.24
7.0.300.0070.00515.37
7.0.290.0040.00615.36
7.0.280.0060.00715.15
7.0.270.0020.00915.26
7.0.260.0050.00415.36
7.0.250.0090.00615.18
7.0.240.0070.00715.24
7.0.230.0060.00615.40
7.0.220.0040.01315.17
7.0.210.0100.00315.38
7.0.200.0070.00515.27
7.0.190.0070.00215.37
7.0.180.0050.00615.23
7.0.170.0010.01215.35
7.0.160.0050.00615.42
7.0.150.0030.00915.20
7.0.140.0050.00415.09
7.0.130.0060.00615.32
7.0.120.0090.00515.33
7.0.110.0030.01015.25
7.0.100.0080.00615.25
7.0.90.0080.00715.25
7.0.80.0060.00915.26
7.0.70.0030.00615.34
7.0.60.0060.00615.29
7.0.50.0060.00815.29
7.0.40.0050.00713.31
7.0.30.0060.00613.37
7.0.20.0100.00113.45
7.0.10.0030.00913.26
7.0.00.0020.01013.34
5.6.400.0070.00713.92
5.6.390.0050.00614.25
5.6.380.0070.00714.23
5.6.370.0020.01114.02
5.6.360.0030.01014.13
5.6.350.0020.01014.18
5.6.340.0040.01014.24
5.6.330.0050.00814.27
5.6.320.0020.00714.13
5.6.310.0030.00914.15
5.6.300.0110.00614.15
5.6.290.0080.00514.00
5.6.280.0040.01014.02
5.6.270.0050.01114.29
5.6.260.0060.01014.19
5.6.250.0080.00814.17
5.6.240.0040.00914.21
5.6.230.0030.01014.07
5.6.220.0060.00814.12
5.6.210.0050.01014.18
5.6.200.0050.00714.42
5.6.190.0040.01114.07
5.6.180.0030.00814.24
5.6.170.0030.00814.22
5.6.160.0050.00414.11
5.6.150.0110.00314.11
5.6.140.0070.00814.11
5.6.130.0060.01114.07
5.6.120.0040.01014.17
5.6.110.0060.00713.95
5.6.100.0040.00914.13
5.6.90.0050.00914.36
5.6.80.0070.00514.11
5.6.70.0070.01014.09
5.6.60.0060.00813.85
5.6.50.0030.01214.03
5.6.40.0030.01013.94
5.6.30.0030.00914.03
5.6.20.0030.00714.10
5.6.10.0050.01014.08
5.6.00.0050.00914.13
5.5.380.0070.00414.03
5.5.370.0080.00614.22
5.5.360.0070.00613.79
5.5.350.0090.00213.92
5.5.340.0030.01013.94
5.5.330.0060.00314.16
5.5.320.0050.01013.99
5.5.310.0060.00413.90
5.5.300.0050.01014.21
5.5.290.0080.00814.03
5.5.280.0030.00814.17
5.5.270.0060.00614.07
5.5.260.0040.00613.96
5.5.250.0050.00914.09
5.5.240.0060.00513.91
5.5.230.0050.01113.91
5.5.220.0080.01013.99
5.5.210.0040.00714.07
5.5.200.0050.00713.87
5.5.190.0060.00713.87
5.5.180.0050.00713.96
5.5.170.0120.00313.88
5.5.160.0040.01014.02
5.5.150.0040.00913.96
5.5.140.0020.01213.99
5.5.130.0030.01013.87
5.5.120.0070.00914.01
5.5.110.0090.00513.86
5.5.100.0070.00513.93
5.5.90.0000.01414.07
5.5.80.0020.01113.76
5.5.70.0070.00513.93
5.5.60.0070.00514.05
5.5.50.0050.00813.85
5.5.40.0070.00513.89
5.5.30.0040.00813.76
5.5.20.0030.00714.03
5.5.10.0030.00813.99
5.5.00.0040.01113.92
5.4.450.0030.00511.20
5.4.440.0030.00611.16
5.4.430.0000.00811.23
5.4.420.0060.00611.25
5.4.410.0060.00411.06
5.4.400.0030.00611.11
5.4.390.0060.00611.21
5.4.380.0070.00211.08
5.4.370.0020.00811.29
5.4.360.0020.00611.15
5.4.350.0040.00511.16
5.4.340.0040.00511.13
5.4.330.0050.00511.09
5.4.320.0070.00311.15
5.4.310.0000.00911.21
5.4.300.0050.00511.21
5.4.290.0020.00611.30
5.4.280.0040.00511.25
5.4.270.0050.00611.15
5.4.260.0030.00811.20
5.4.250.0030.00511.21
5.4.240.0020.00511.34
5.4.230.0020.00611.21
5.4.220.0020.00811.16
5.4.210.0060.00311.22
5.4.200.0030.00711.27
5.4.190.0050.00611.17
5.4.180.0020.00511.14
5.4.170.0030.00611.11
5.4.160.0060.00611.20
5.4.150.0030.00511.29
5.4.140.0050.00511.22
5.4.130.0090.02411.62
5.4.120.0110.02611.72
5.4.110.0140.02411.63
5.4.100.0120.02811.63
5.4.90.0120.02811.74
5.4.80.0120.03311.65
5.4.70.0080.02911.65
5.4.60.0090.02911.66
5.4.50.0170.03411.65
5.4.40.0100.02711.68
5.4.30.0100.03511.67
5.4.20.0110.02611.66
5.4.10.0170.03311.71
5.4.00.0090.02811.34
5.3.290.0040.00610.84
5.3.280.0060.00610.88
5.3.270.0110.00010.91
5.3.260.0030.00710.91
5.3.250.0040.00510.92
5.3.240.0040.00510.85
5.3.230.0130.03711.76
5.3.220.0110.02911.93
5.3.210.0120.02911.93
5.3.200.0120.02711.97
5.3.190.0110.03111.97
5.3.180.0110.03011.99
5.3.170.0140.03411.99
5.3.160.0180.04611.95
5.3.150.0120.02812.00
5.3.140.0110.02911.99
5.3.130.0100.03111.98
5.3.120.0140.03311.96
5.3.110.0120.02611.93
5.3.100.0120.02811.65
5.3.90.0100.02811.60
5.3.80.0120.03911.57
5.3.70.0110.02911.60
5.3.60.0150.03711.59
5.3.50.0100.03011.52
5.3.40.0110.03011.55
5.3.30.0140.03811.52
5.3.20.0180.04011.37
5.3.10.0110.02611.34
5.3.00.0150.04711.31

preferences:
50.86 ms | 400 KiB | 5 Q