3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <T3FlexForms> <data> <sheet index="options"> <language index="lDEF"> <field index="images"> <el index="el"> <section index="1"> <itemType index="image"> <el> <field index="src"> <value index="vDEF">fileadmin/user_upload/typo3-multi-language-setup/rootlevel-domain-records.png</value> </field> <field index="caption"> <value index="vDEF">Root level domain records</value> </field> </el> </itemType> <itemType index="_TOGGLE">0</itemType> </section> <section index="2"> <itemType index="image"> <el> <field index="src"> <value index="vDEF">fileadmin/user_upload/typo3-multi-language-setup/prepend-this-domain.png</value> </field> <field index="caption"> <value index="vDEF">Uncheck this option: Always prepend this domain...</value> </field> </el> </itemType> <itemType index="_TOGGLE">0</itemType> </section> <section index="3"> <itemType index="image"> <el> <field index="src"> <value index="vDEF">fileadmin/user_upload/typo3-multi-language-setup/is-root-of-website.png</value> </field> <field index="caption"> <value index="vDEF">This must be checked: Is root of website</value> </field> </el> </itemType> <itemType index="_TOGGLE">0</itemType> </section> </el> </field> </language> </sheet> </data> </T3FlexForms>'; $xml = new \SimpleXMLElement($xmlString); $images = $xml->xpath("//T3FlexForms//sheet[@index='options']//field[@index='images']//section/itemType[@index='image']/el"); foreach ($images as $image) { $src = (string) array_shift($image->xpath("//field[@index='src']/value/text()")); $description = (string) array_shift($image->xpath("//field[@index='caption']/value/text()")); echo $src . chr(10); echo $description . chr(10); }

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.0090.00617.13
8.3.50.0120.00621.38
8.3.40.0120.00319.36
8.3.30.0090.00619.08
8.3.20.0060.01220.71
8.3.10.0050.00324.11
8.3.00.0050.00318.54
8.2.180.0120.00918.66
8.2.170.0120.00322.96
8.2.160.0060.01321.03
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00318.13
8.2.110.0060.00622.74
8.2.100.0060.00618.53
8.2.90.0000.00819.59
8.2.80.0060.00318.13
8.2.70.0040.00418.00
8.2.60.0060.00318.42
8.2.50.0040.00418.07
8.2.40.0040.00421.57
8.2.30.0030.00520.98
8.2.20.0080.00017.98
8.2.10.0000.00818.56
8.2.00.0050.00318.55
8.1.280.0110.00425.92
8.1.270.0040.01124.32
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0090.00022.98
8.1.230.0110.00019.51
8.1.220.0030.00618.16
8.1.210.0030.00618.77
8.1.200.0080.00317.60
8.1.190.0080.00017.60
8.1.180.0040.00418.10
8.1.170.0040.00420.88
8.1.160.0000.00722.29
8.1.150.0000.00719.48
8.1.140.0040.00419.84
8.1.130.0000.00718.08
8.1.120.0040.00518.05
8.1.110.0070.00018.04
8.1.100.0040.00417.73
8.1.90.0030.00517.82
8.1.80.0100.00317.69
8.1.70.0000.00717.97
8.1.60.0050.00317.86
8.1.50.0000.00818.04
8.1.40.0000.00917.89
8.1.30.0000.00817.93
8.1.20.0040.00418.16
8.1.10.0040.00418.14
8.1.00.0000.00818.09
8.0.300.0110.00018.83
8.0.290.0040.00417.25
8.0.280.0030.00318.95
8.0.270.0040.00417.79
8.0.260.0030.00317.70
8.0.250.0040.00417.54
8.0.240.0030.00617.34
8.0.230.0090.00017.55
8.0.220.0040.00417.46
8.0.210.0030.00517.45
8.0.200.0030.00517.50
8.0.190.0080.00017.44
8.0.180.0070.00317.25
8.0.170.0060.00317.45
8.0.160.0000.00717.25
8.0.150.0000.00717.38
8.0.140.0040.00417.18
8.0.130.0030.00313.73
8.0.120.0050.00317.45
8.0.110.0000.00817.26
8.0.100.0040.00417.29
8.0.90.0070.00017.25
8.0.80.0180.00417.42
8.0.70.0040.00417.30
8.0.60.0000.00717.52
8.0.50.0050.00317.27
8.0.30.0120.00917.52
8.0.20.0090.01017.60
8.0.10.0040.00417.37
8.0.00.0110.00917.34
7.4.330.0030.00315.56
7.4.320.0030.00316.86
7.4.300.0030.00317.05
7.4.290.0030.00616.98
7.4.280.0040.00417.05
7.4.270.0000.00717.10
7.4.260.0070.00016.88
7.4.250.0000.00817.00
7.4.240.0060.00216.90
7.4.230.0000.00716.98
7.4.220.0160.00317.11
7.4.210.0070.00717.05
7.4.200.0000.00716.85
7.4.160.0090.00616.91
7.4.150.0060.01117.40
7.4.140.0110.01017.86
7.4.130.0090.00916.99
7.4.120.0110.00817.03
7.4.110.0100.01016.95
7.4.100.0150.00916.98
7.4.90.0110.00716.84
7.4.80.0130.00919.39
7.4.70.0060.01216.99
7.4.60.0070.01617.03
7.4.50.0040.00417.01
7.4.40.0080.00817.03
7.4.30.0070.01116.99
7.4.00.0070.01115.31
7.3.330.0030.00313.64
7.3.320.0090.00013.46
7.3.310.0050.00316.50
7.3.300.0000.00716.72
7.3.290.0050.01216.84
7.3.280.0100.01016.76
7.3.270.0080.00817.40
7.3.260.0090.00916.85
7.3.250.0110.00816.90
7.3.240.0120.00916.97
7.3.230.0100.00717.02
7.3.210.0040.01417.18
7.3.200.0110.01116.75
7.3.190.0110.00917.06
7.3.180.0030.01416.84
7.3.170.0110.01116.89
7.3.160.0090.00916.87
7.3.120.0090.00815.04
7.3.110.0120.00515.11
7.3.100.0060.00914.95
7.3.90.0030.01015.03
7.3.80.0060.00715.20
7.3.70.0050.01114.99
7.3.60.0060.00715.03
7.3.50.0100.00715.01
7.3.40.0040.00915.02
7.3.30.0040.00914.95
7.3.20.0060.01016.93
7.3.10.0060.00816.99
7.3.00.0080.00716.83
7.2.330.0060.01216.86
7.2.320.0090.01417.05
7.2.310.0100.01117.01
7.2.300.0030.01517.18
7.2.290.0130.00716.92
7.2.250.0130.00915.16
7.2.240.0050.01015.26
7.2.230.0080.00615.33
7.2.220.0090.00515.23
7.2.210.0060.00915.37
7.2.200.0110.00315.34
7.2.190.0030.01215.23
7.2.180.0080.00715.27
7.2.170.0030.01215.16
7.2.160.0030.01415.34
7.2.150.0130.00317.24
7.2.140.0110.00616.93
7.2.130.0030.01017.12
7.2.120.0080.00717.19
7.2.110.0080.00517.21
7.2.100.0030.01216.99
7.2.90.0100.00517.01
7.2.80.0080.00617.17
7.2.70.0070.00717.20
7.2.60.0040.00917.05
7.2.50.0090.00717.09
7.2.40.0050.00717.28
7.2.30.0070.00517.17
7.2.20.0090.00917.02
7.2.10.0050.01016.96
7.2.00.0080.00618.01
7.1.330.0090.00516.02
7.1.320.0060.00716.06
7.1.310.0060.00415.94
7.1.300.0070.00515.95
7.1.290.0040.01016.08
7.1.280.0060.00815.92
7.1.270.0050.01015.98
7.1.260.0110.00516.02
7.1.250.0060.01016.09
7.1.200.0070.00715.85
7.1.100.0060.00918.22
7.1.70.0070.00717.50
7.1.60.0130.01019.50
7.1.50.0080.00817.34
7.1.00.0000.08022.65
7.0.200.0000.00717.20
7.0.60.0030.08320.21
7.0.50.0070.08018.19
7.0.40.0030.09020.20
7.0.30.0230.06720.47
7.0.20.0270.05720.42
7.0.10.0200.07720.33
7.0.00.0070.08320.34
5.6.280.0000.03321.35
5.6.210.0070.03720.84
5.6.200.0130.06318.46
5.6.190.0070.08020.92
5.6.180.0230.04320.63
5.6.170.0230.05020.93
5.6.160.0100.07720.66
5.6.150.0100.05018.46
5.6.140.0030.09018.40
5.6.130.0070.06718.45
5.6.120.0230.07321.17
5.6.110.0300.04721.16
5.6.100.0030.04721.35
5.6.90.0000.05021.34
5.6.80.0030.05020.64
5.5.350.0070.08020.58
5.5.340.0070.06718.14
5.5.330.0000.04720.50
5.5.320.3730.04720.46
5.5.310.0230.03720.61
5.5.300.0000.04718.24
5.5.290.0100.08018.21
5.5.280.0030.06321.00
5.5.270.0170.05020.97
5.5.260.0070.05721.20
5.5.250.0030.04020.88
5.5.240.0100.02720.54
5.4.450.0670.07019.69
5.4.440.0670.05319.83
5.4.430.0730.05319.79
5.4.420.0770.05319.80
5.4.410.0730.07319.57
5.4.400.0730.05719.48
5.4.390.0800.08019.32
5.4.380.0730.05719.55
5.4.370.0600.05719.44
5.4.360.0630.05319.59
5.4.350.0300.06019.53
5.4.340.0100.06319.32
5.4.320.0200.07319.54
5.4.310.0130.08319.35
5.4.300.0270.06719.34
5.4.290.0230.05019.44
5.4.280.0270.07019.30
5.4.270.0170.05019.52
5.4.260.0170.05319.49
5.4.250.0230.04719.49
5.4.240.0170.05019.43
5.4.230.0300.04019.52
5.4.220.0130.05719.49
5.4.210.0170.05319.14
5.4.200.0230.05019.34
5.4.190.0170.05719.52
5.4.180.0230.05019.58
5.4.170.0200.06019.46
5.4.160.0270.04319.17
5.4.150.0200.05319.48
5.4.140.0230.05716.54
5.4.130.0170.04716.63
5.4.120.0130.05316.59
5.4.110.0170.05316.68
5.4.100.0230.05316.34
5.4.90.0170.05716.70
5.4.80.0230.04016.54
5.4.70.0300.06716.32
5.4.60.0270.04716.31
5.4.50.0200.05716.66
5.4.40.0200.04316.67
5.4.30.0270.04716.62
5.4.20.0330.05716.47
5.4.10.0270.06716.62
5.4.00.0230.06316.02

preferences:
73.53 ms | 401 KiB | 5 Q