3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>'. '<request><body test2="321" test3="987">'. '<rows><my-row test4="564">'. '<types>'. '<custom>this is the example of the text</custom>'. '<Generic arch="simple">this is the example of the text</Generic>'. '<bold/><italic/><underlined/>'. '</types>'. '</my-row><my-row test5="565"/><test hidden="false" ready="true"/></rows>'. '</body></request>'; $obj = new SimpleXmlIterator($s); foreach ($obj as $key => $value) { var_dump($key, $value, '<hr/>'); }

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.0140.00716.88
8.3.50.0120.00722.06
8.3.40.0120.00318.80
8.3.30.0140.00019.16
8.3.20.0080.00020.46
8.3.10.0030.00523.78
8.3.00.0060.00319.25
8.2.180.0060.00918.54
8.2.170.0120.00622.96
8.2.160.0120.00320.52
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0030.00522.24
8.2.110.0070.00322.56
8.2.100.0080.00418.16
8.2.90.0040.00419.47
8.2.80.0040.00418.18
8.2.70.0060.00617.88
8.2.60.0060.00317.80
8.2.50.0030.00518.07
8.2.40.0040.00418.34
8.2.30.0030.00718.35
8.2.20.0040.00417.88
8.2.10.0030.00518.46
8.2.00.0030.00817.98
8.1.280.0030.01625.92
8.1.270.0050.00322.35
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0030.00724.14
8.1.230.0070.00419.18
8.1.220.0040.00417.79
8.1.210.0050.00518.77
8.1.200.0070.00317.48
8.1.190.0040.00417.55
8.1.180.0000.00918.10
8.1.170.0040.00418.87
8.1.160.0000.00722.21
8.1.150.0030.00618.86
8.1.140.0030.00517.66
8.1.130.0030.00517.68
8.1.120.0000.00817.71
8.1.110.0030.00517.59
8.1.100.0000.00717.66
8.1.90.0040.00417.75
8.1.80.0030.00517.60
8.1.70.0000.00717.68
8.1.60.0040.00417.73
8.1.50.0040.00417.63
8.1.40.0030.00517.65
8.1.30.0080.00017.95
8.1.20.0000.00817.79
8.1.10.0050.00317.73
8.1.00.0000.00717.77
8.0.300.0040.00418.77
8.0.290.0040.00417.43
8.0.280.0000.00718.68
8.0.270.0030.00317.38
8.0.260.0030.00317.11
8.0.250.0030.00317.09
8.0.240.0000.00717.23
8.0.230.0030.00317.21
8.0.220.0000.00717.02
8.0.210.0030.00717.11
8.0.200.0030.00317.13
8.0.190.0040.00417.18
8.0.180.0030.00517.10
8.0.170.0080.00017.23
8.0.160.0040.00417.00
8.0.150.0030.00316.99
8.0.140.0000.00716.97
8.0.130.0000.00613.51
8.0.120.0040.00417.09
8.0.110.0040.00416.98
8.0.100.0040.00417.13
8.0.90.0000.00817.12
8.0.80.0070.01117.14
8.0.70.0070.00017.16
8.0.60.0000.00717.04
8.0.50.0040.00417.18
8.0.30.0110.01117.24
8.0.20.0100.01017.40
8.0.10.0040.00417.34
8.0.00.0120.00617.11
7.4.330.0030.00315.27
7.4.320.0030.00316.93
7.4.300.0030.00316.80
7.4.290.0080.00016.82
7.4.280.0030.00316.63
7.4.270.0070.00016.80
7.4.260.0060.00316.70
7.4.250.0030.00316.62
7.4.240.0000.00716.79
7.4.230.0040.00416.82
7.4.220.0070.01016.71
7.4.210.0080.00816.78
7.4.200.0030.00316.91
7.4.190.0000.00716.65
7.4.160.0060.01016.87
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0080.00916.65
7.4.120.0050.01616.84
7.4.110.0140.00516.69
7.4.100.0100.01316.61
7.4.90.0090.00916.70
7.4.80.0090.00919.39
7.4.70.0040.01316.77
7.4.60.0100.00716.75
7.4.50.0050.00516.75
7.4.40.0040.01522.77
7.4.30.0080.00816.70
7.4.00.0050.01114.98
7.3.330.0060.00013.39
7.3.320.0000.00713.38
7.3.310.0070.00016.33
7.3.300.0030.00316.46
7.3.290.0140.00816.49
7.3.280.0110.01016.50
7.3.270.0100.01017.40
7.3.260.0170.00916.75
7.3.250.0130.00716.64
7.3.240.0110.01116.59
7.3.230.0160.00316.45
7.3.210.0140.00316.68
7.3.200.0060.01319.39
7.3.190.0180.00016.63
7.3.180.0040.01216.59
7.3.170.0140.00816.46
7.3.160.0130.00716.46
7.3.120.0090.00914.95
7.3.110.0060.01214.96
7.3.100.0000.01515.19
7.3.90.0080.00615.21
7.3.80.0080.00814.82
7.3.70.0060.00614.88
7.3.60.0070.01014.89
7.3.50.0080.00614.74
7.3.40.0040.01114.71
7.3.30.0100.00414.86
7.3.20.0000.01416.75
7.3.10.0060.01216.79
7.3.00.0120.00316.59
7.2.330.0090.00916.56
7.2.320.0170.00717.01
7.2.310.0030.01416.80
7.2.300.0120.00616.84
7.2.290.0100.01016.99
7.2.250.0030.01414.96
7.2.240.0140.00715.02
7.2.230.0120.00314.88
7.2.220.0000.01315.27
7.2.210.0080.00715.18
7.2.200.0000.01815.51
7.2.190.0070.00315.03
7.2.180.0000.01115.33
7.2.170.0080.00415.14
7.2.00.0040.00819.27
7.1.330.0090.00615.88
7.1.320.0120.00015.71
7.1.310.0070.00715.60
7.1.300.0040.01115.95
7.1.290.0000.01515.87
7.1.280.0030.00915.78
7.1.270.0030.01015.84
7.1.260.0040.01115.89
7.1.200.0040.00815.77
7.1.100.0030.01018.13
7.1.70.0000.00817.27
7.1.60.0160.00919.33
7.1.50.0060.01617.11
7.1.00.0070.07322.50
7.0.200.0000.00916.61
7.0.140.0000.07722.03
7.0.100.0130.04019.98
7.0.90.0100.07020.04
7.0.80.0030.05020.05
7.0.70.0200.07320.00
7.0.60.0070.08320.00
7.0.50.0270.07720.42
7.0.40.0070.08720.19
7.0.30.0070.08320.09
7.0.20.0130.04720.20
7.0.10.0130.06020.10
7.0.00.0070.08020.22
5.6.280.0070.07021.07
5.6.250.0070.09020.66
5.6.240.0130.07020.54
5.6.230.0170.07020.79
5.6.220.0100.07720.87
5.6.210.0130.07320.68
5.6.200.0170.06321.12
5.6.190.0000.09021.07
5.6.180.0030.07021.25
5.6.170.0100.08321.26
5.6.160.0100.04321.20
5.6.150.0130.08321.06
5.6.140.0130.06721.25
5.6.130.0130.07320.93
5.6.120.0130.07721.23
5.6.110.0100.08021.22
5.6.100.0170.08321.27
5.6.90.0170.07021.07
5.6.80.0070.08720.37
5.6.70.0170.03720.43
5.6.60.0130.07320.50
5.6.50.0070.07720.44
5.6.40.0100.04320.45
5.6.30.0030.05020.49
5.6.20.0000.05320.49
5.6.10.0000.04320.41
5.6.00.0070.08320.46
5.5.380.0170.06720.44
5.5.370.0070.04020.59
5.5.360.0130.05720.45
5.5.350.0070.08320.43
5.5.340.0070.07720.91
5.5.330.0100.07720.87
5.5.320.0070.06020.75
5.5.310.0070.08020.87
5.5.300.0070.08020.91
5.5.290.0130.06721.03
5.5.280.0230.06720.80
5.5.270.0070.05020.99
5.5.260.0270.07321.00
5.5.250.0170.06320.79
5.5.240.0100.07720.41
5.5.230.0070.08320.36
5.5.220.0130.07020.38
5.5.210.0100.07020.18
5.5.200.0130.07320.11
5.5.190.0070.07720.24
5.5.180.0070.08020.33
5.5.160.0030.06320.22
5.5.150.0070.04020.38
5.5.140.0170.07020.19
5.5.130.0100.07020.23
5.5.120.0030.06720.15
5.5.110.0100.07020.12
5.5.100.0030.07720.23
5.5.90.0000.08020.26
5.5.80.0030.03720.25
5.5.70.0030.04320.11
5.5.60.0070.06320.20
5.5.50.0070.05020.27
5.5.40.0070.07720.08
5.5.30.0070.07020.27
5.5.20.0100.09020.11
5.5.10.0200.05020.07
5.5.00.0000.05320.06
5.4.450.0000.09019.54
5.4.440.0100.08319.50
5.4.430.0170.06719.42
5.4.420.0070.07019.51
5.4.410.0030.07319.04
5.4.400.0130.06719.12
5.4.390.0070.08019.03
5.4.380.0100.07019.12
5.4.370.0100.06319.12
5.4.360.0130.07319.16
5.4.350.0070.06319.19
5.4.340.0070.03719.18
5.4.320.0370.02019.25
5.4.310.0100.07319.19
5.4.300.0070.05319.03
5.4.290.0100.08319.18
5.4.280.0100.04319.20
5.4.270.0000.06319.19
5.4.260.0030.08018.88
5.4.250.0030.07719.18
5.4.240.0100.07319.11
5.4.230.0030.07019.11
5.4.220.0130.06719.16
5.4.210.0130.06019.17
5.4.200.0030.04719.18
5.4.190.0030.04318.84
5.4.180.0100.07718.87
5.4.170.0100.09319.11
5.4.160.0030.08019.18
5.4.150.0130.04019.14
5.4.140.0130.06016.47
5.4.130.0070.07016.52
5.4.120.0000.04016.57
5.4.110.0000.04716.46
5.4.100.0100.07016.46
5.4.90.0030.05316.46
5.4.80.0030.07316.56
5.4.70.0070.07316.59
5.4.60.0070.05316.59
5.4.50.0000.05316.48
5.4.40.0070.06016.52
5.4.30.0070.07016.43
5.4.20.0070.06316.54
5.4.10.0070.08316.59
5.4.00.0100.06315.92
5.3.290.0030.05014.77
5.3.280.0070.06714.71
5.3.270.0100.04014.68
5.3.260.0070.07314.68
5.3.250.0170.06314.54
5.3.240.0100.03014.70
5.3.230.0100.05714.67
5.3.220.0000.06714.50
5.3.210.0070.06714.66
5.3.200.0130.03014.48
5.3.190.0070.07014.71
5.3.180.0000.04314.64
5.3.170.0070.07314.59
5.3.160.0030.03714.50
5.3.150.0130.07314.65
5.3.140.0130.07014.64
5.3.130.0070.06314.45
5.3.120.0030.08014.46
5.3.110.0030.07714.62
5.3.100.0170.06713.96
5.3.90.0000.06714.06
5.3.80.0070.05313.95
5.3.70.0070.04014.11
5.3.60.0030.04713.85
5.3.50.0270.02714.04
5.3.40.0000.04014.03
5.3.30.0030.03714.06
5.3.20.0000.03713.83
5.3.10.0070.03713.48
5.3.00.0070.03013.70
5.2.170.0070.02711.57
5.2.160.0000.03011.57
5.2.150.0030.03011.57
5.2.140.0030.02711.57
5.2.130.0000.03011.57
5.2.120.0000.03011.57
5.2.110.0030.03011.57
5.2.100.0070.02311.57
5.2.90.0030.03011.57
5.2.80.0070.02311.57
5.2.70.0030.02311.57
5.2.60.0000.03311.57
5.2.50.0070.03311.57
5.2.40.0070.02311.57
5.2.30.0070.02311.57
5.2.20.0030.02711.57
5.2.10.0000.03011.57
5.2.00.0030.03711.57
5.1.60.0070.03011.57
5.1.50.0100.01711.57
5.1.40.0030.02311.57
5.1.30.0000.02711.57
5.1.20.0000.02311.57
5.1.10.0000.02711.57
5.1.00.0000.02711.57
5.0.50.0030.02011.57
5.0.40.0030.01711.57
5.0.30.0000.03011.57
5.0.20.0030.01311.57
5.0.10.0000.02311.57
5.0.00.0000.03011.57
4.4.90.0000.01711.57
4.4.80.0030.01311.57
4.4.70.0000.01711.57
4.4.60.0000.01311.57
4.4.50.0030.01311.57
4.4.40.0000.02711.57
4.4.30.0000.01711.57
4.4.20.0000.01711.57
4.4.10.0030.01711.57
4.4.00.0000.02311.57
4.3.110.0030.01311.57
4.3.100.0030.01311.57
4.3.90.0000.01311.57
4.3.80.0000.02311.57
4.3.70.0000.01311.57
4.3.60.0000.01711.57
4.3.50.0000.01711.57
4.3.40.0000.02311.57
4.3.30.0000.01311.57
4.3.20.0000.01711.57
4.3.10.0000.01711.57
4.3.00.0000.01311.57

preferences:
36.77 ms | 401 KiB | 5 Q