3v4l.org

run code in 300+ PHP versions simultaneously
<?php $feed = '<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"> <property> <reference>####</reference> <images> <image url="https://#####.#########.###/imgV1/QGcM5YXB7ITu20usXVas9zwwpfszaQl0S7VJWTlCweLw8h1OJgGrQ8SrQZiKyUwAW5EgBoJga_JUxtL~PunupG3r34QY7hcc7wMtgouw9c1H6DUbVNANjxM_Zg--.jpg">A2970_10776141.jpg</image> <image url="https://#####.#########.###/imgV1/QGcM5YXB7ITu20usXVas9zwwpfszaQl0S7VJWTlCweLw8h1OJgGrQ8SrQZiKyUwAW5EgBoJga_AwVzHs_Ajc3bPh6tAooCEbZkq_ZYbRT5eAjUXsq3Znh_f~Vw--.jpg">A2970_10776142.jpg</image> </images> </property> </properties>'; $properties = simplexml_load_string($feed); foreach ($properties as $property) { foreach ($property->images->image as $image) { echo $image['url'] . PHP_EOL; echo $image->attributes()['url'] . PHP_EOL; } }

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.4.130.0060.00818.01
8.4.120.0130.00822.43
8.4.110.0080.00518.77
8.4.100.0090.01217.98
8.4.90.0110.00920.66
8.4.80.0040.00419.28
8.4.70.0120.00219.07
8.4.60.0130.00719.17
8.4.50.0100.00720.82
8.4.40.0100.01019.63
8.4.30.0100.01019.56
8.4.20.0080.00418.98
8.4.10.0030.01620.78
8.3.260.0130.00716.53
8.3.250.0090.00919.02
8.3.240.0110.00817.16
8.3.230.0060.00816.70
8.3.220.0110.00718.98
8.3.210.0090.01016.73
8.3.200.0080.00116.66
8.3.190.0110.00918.84
8.3.180.0110.00816.52
8.3.170.0070.01117.54
8.3.160.0060.01020.46
8.3.150.0060.01216.90
8.3.140.0000.00817.39
8.3.130.0080.00018.43
8.3.120.0070.01121.11
8.3.110.0120.00320.94
8.3.100.0040.00416.76
8.3.90.0040.00426.77
8.3.80.0090.00018.43
8.3.70.0040.01116.50
8.3.60.0170.00718.42
8.3.50.0120.00818.52
8.3.40.0150.00019.09
8.3.30.0150.00018.80
8.3.20.0030.00621.96
8.3.10.0000.00822.15
8.3.00.0080.00022.14
8.2.290.0060.00822.59
8.2.280.0100.01218.70
8.2.270.0100.01017.54
8.2.260.0030.01218.63
8.2.250.0130.00716.86
8.2.240.0120.00317.36
8.2.230.0030.00622.58
8.2.220.0060.00324.06
8.2.210.0030.01226.77
8.2.200.0070.00318.79
8.2.190.0100.01017.00
8.2.180.0150.00018.66
8.2.170.0160.00022.96
8.2.160.0130.00320.64
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0080.00020.02
8.2.120.0040.00426.35
8.2.110.0070.00322.45
8.2.100.0090.00318.16
8.2.90.0070.00718.31
8.2.80.0050.00318.16
8.2.70.0000.00818.29
8.2.60.0070.00018.34
8.2.50.0040.00418.10
8.2.40.0040.00419.52
8.2.30.0070.00020.71
8.2.20.0040.00418.40
8.2.10.0040.00419.52
8.2.00.0070.00018.40
8.1.330.0100.01022.29
8.1.320.0080.01216.38
8.1.310.0070.00018.85
8.1.300.0030.00619.69
8.1.290.0000.00930.84
8.1.280.0130.00725.92
8.1.270.0080.00020.40
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00322.18
8.1.230.0040.00719.42
8.1.220.0020.00718.02
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0060.00318.91
8.1.160.0040.00419.07
8.1.150.0030.00519.00
8.1.140.0040.00419.07
8.1.130.0000.00720.49
8.1.120.0000.00717.71
8.1.110.0000.00817.63
8.1.100.0070.00417.76
8.1.90.0050.00217.69
8.1.80.0040.00417.70
8.1.70.0000.00717.69
8.1.60.0060.00317.86
8.1.50.0040.00417.78
8.1.40.0040.00417.70
8.1.30.0060.00317.73
8.1.20.0000.01017.84
8.1.10.0040.00417.68
8.1.00.0000.00817.78
8.0.300.0030.00619.91
8.0.290.0060.00317.00
8.0.280.0000.00718.75
8.0.270.0070.00017.05
8.0.260.0030.00318.72
8.0.250.0000.00717.14
8.0.240.0090.00017.13
8.0.230.0000.00717.23
8.0.220.0080.00017.12
8.0.210.0000.00817.06
8.0.200.0030.00317.08
8.0.190.0050.00217.05
8.0.180.0000.00717.09
8.0.170.0050.00316.98
8.0.160.0060.00317.13
8.0.150.0000.01017.12
8.0.140.0000.00717.04
8.0.130.0000.00613.52
8.0.120.0040.00417.08
8.0.110.0000.00717.02
8.0.100.0000.00817.02
8.0.90.0050.00217.09
8.0.80.0060.01017.05
8.0.70.0040.00417.22
8.0.60.0000.00917.22
8.0.50.0050.00317.20
8.0.30.0110.00917.41
8.0.20.0090.00917.18
8.0.10.0050.00317.10
8.0.00.0080.01517.13
7.4.330.0050.00016.97
7.4.320.0000.00616.77
7.4.300.0030.00316.80
7.4.290.0030.00316.66
7.4.280.0080.00416.63
7.4.270.0030.00316.89
7.4.260.0040.00416.71
7.4.250.0000.00716.70
7.4.240.0070.00016.73
7.4.230.0000.00716.81
7.4.220.0080.00016.70
7.4.210.0080.00816.82
7.4.200.0000.00716.64
7.4.160.0080.00916.62
7.4.140.0060.01117.86
7.4.130.0040.01516.65
7.4.120.0080.01116.77
7.4.110.0040.01416.87
7.4.100.0120.00616.70
7.4.90.0090.00916.56
7.4.80.0150.00719.39
7.4.70.0150.00616.81
7.4.60.0100.00616.82
7.4.50.0060.00916.48
7.4.40.0060.01016.62
7.4.00.0030.01315.11
7.3.330.0050.00013.25
7.3.320.0040.00413.31
7.3.310.0030.00316.64
7.3.300.0000.00716.56
7.3.290.0060.00316.44
7.3.280.0090.00716.54
7.3.260.0100.00916.68
7.3.240.0080.01116.59
7.3.230.0100.00716.79
7.3.210.0120.00916.64
7.3.200.0100.00716.50
7.3.190.0100.01016.68
7.3.180.0030.01416.59
7.3.170.0030.01816.56
7.3.160.0090.00616.49
7.3.40.0060.01214.86
7.3.30.0190.00614.59
7.3.20.0270.00514.55
7.3.10.0160.01314.93
7.3.00.0190.00914.91
7.2.330.0090.00916.62
7.2.320.0130.00316.70
7.2.310.0100.00716.78
7.2.300.0070.01017.12
7.2.290.0100.00716.71
7.2.170.0120.00815.00
7.2.160.0140.01415.13
7.2.150.0210.01315.32
7.2.140.0180.00915.27
7.2.130.0280.00615.24
7.2.120.0210.01515.29
7.2.110.0480.01014.96
7.2.100.0130.01615.00
7.2.90.0080.01914.98
7.2.80.0200.00014.79
7.2.70.0190.00815.10
7.2.60.0170.01414.96
7.2.50.0140.00515.21
7.2.40.0130.01314.95
7.2.30.0260.00415.08
7.2.20.0170.00515.15
7.2.10.0200.01015.10
7.2.00.0120.00915.15
7.1.280.0130.01114.11
7.1.270.0170.01213.95
7.1.260.0240.00313.78
7.1.250.0170.00614.15

preferences:
29.83 ms | 403 KiB | 5 Q