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); function f($xml){ foreach ($obj as $key => $value) { var_dump($key, $value, '============='); if (get_class('SimpleXMLIterator')) f($v); } }

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.80
8.3.50.0060.01122.05
8.3.40.0040.01118.80
8.3.30.0070.00719.13
8.3.20.0020.00520.59
8.3.10.0050.00323.82
8.3.00.0080.00022.64
8.2.180.0070.00716.73
8.2.170.0120.00622.96
8.2.160.0100.00322.29
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.48
8.2.110.0030.00622.19
8.2.100.0090.00317.97
8.2.90.0030.00619.20
8.2.80.0000.00818.05
8.2.70.0030.00617.75
8.2.60.0030.00618.05
8.2.50.0050.00518.07
8.2.40.0080.00018.47
8.2.30.0040.00418.18
8.2.20.0040.00417.71
8.2.10.0000.00819.68
8.2.00.0040.00417.92
8.1.280.0030.01225.92
8.1.270.0030.00623.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00424.09
8.1.230.0000.01219.32
8.1.220.0040.00417.80
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0000.00817.53
8.1.180.0030.00618.10
8.1.170.0080.00018.63
8.1.160.0040.00422.19
8.1.150.0040.00418.74
8.1.140.0040.00417.54
8.1.130.0040.00418.00
8.1.120.0000.01017.56
8.1.110.0030.00317.50
8.1.100.0000.00817.51
8.1.90.0000.00717.54
8.1.80.0040.00417.47
8.1.70.0070.00017.64
8.1.60.0040.00417.82
8.1.50.0050.00317.54
8.1.40.0040.00417.74
8.1.30.0000.00817.75
8.1.20.0000.00817.88
8.1.10.0000.00717.75
8.1.00.0080.00017.58
8.0.300.0030.00318.77
8.0.290.0040.00417.30
8.0.280.0000.00818.51
8.0.270.0070.00017.32
8.0.260.0030.00316.96
8.0.250.0030.00316.99
8.0.240.0030.00317.00
8.0.230.0000.00717.00
8.0.220.0070.00016.93
8.0.210.0030.00317.13
8.0.200.0000.00717.19
8.0.190.0000.00717.00
8.0.180.0070.00417.12
8.0.170.0060.00317.00
8.0.160.0080.00016.98
8.0.150.0070.00017.07
8.0.140.0040.00416.92
8.0.130.0070.00013.45
8.0.120.0000.00817.09
8.0.110.0050.00217.09
8.0.100.0040.00417.03
8.0.90.0040.00416.84
8.0.80.0120.00317.03
8.0.70.0020.00516.92
8.0.60.0000.00717.11
8.0.50.0040.00416.98
8.0.30.0130.00817.12
8.0.20.0070.01517.40
8.0.10.0000.00717.03
8.0.00.0090.00917.01
7.4.330.0000.00515.19
7.4.320.0030.00316.69
7.4.300.0030.00316.79
7.4.290.0000.00716.77
7.4.280.0080.00016.68
7.4.270.0060.00316.64
7.4.260.0000.00716.66
7.4.250.0070.00016.73
7.4.240.0050.00316.74
7.4.230.0030.00316.58
7.4.220.0030.01516.80
7.4.210.0070.00916.71
7.4.200.0030.00316.49
7.4.190.0030.00316.85
7.4.160.0060.00916.77
7.4.150.0090.00917.40
7.4.140.0090.01317.86
7.4.130.0130.00516.72
7.4.120.0100.01016.62
7.4.110.0080.00816.55
7.4.100.0120.00616.73
7.4.90.0060.01216.62
7.4.80.0040.01516.63
7.4.70.0170.00016.67
7.4.60.0000.01616.59
7.4.50.0000.00816.30
7.4.40.0060.00922.77
7.4.30.0160.00616.88
7.4.00.0060.00915.17
7.3.330.0030.00313.41
7.3.320.0030.00313.25
7.3.310.0060.00316.53
7.3.300.0050.00216.43
7.3.290.0090.00616.38
7.3.280.0100.00816.42
7.3.270.0060.01217.40
7.3.260.0070.01016.49
7.3.250.0080.00916.45
7.3.240.0060.01216.38
7.3.230.0000.01716.45
7.3.210.0100.00716.51
7.3.200.0080.00919.39
7.3.190.0090.00916.63
7.3.180.0130.00316.64
7.3.170.0030.01316.78
7.3.160.0150.00016.54
7.3.120.0140.00314.92
7.3.110.0100.00714.50
7.3.100.0000.01314.84
7.3.90.0080.01214.65
7.3.80.0000.00714.74
7.3.70.0030.00714.84
7.3.60.0000.01414.62
7.3.50.0030.00514.95
7.3.40.0030.01014.82
7.3.30.0030.00614.80
7.3.20.0040.00816.55
7.3.10.0000.00916.46
7.3.00.0100.00316.41
7.2.330.0070.01316.85
7.2.320.0110.00716.68
7.2.310.0100.00716.64
7.2.300.0140.00316.80
7.2.290.0090.00916.42
7.2.240.0000.01214.91
7.2.230.0100.00615.24
7.2.220.0100.00715.11
7.2.210.0060.00914.96
7.2.200.0000.01315.09
7.2.190.0040.01214.92
7.2.180.0050.00814.86
7.2.170.0070.00715.04
7.2.160.0060.00914.89
7.2.150.0000.01316.98
7.2.140.0000.01316.89
7.2.130.0040.01616.57
7.2.120.0040.01116.92
7.2.110.0060.00916.86
7.2.100.0070.00716.91
7.2.90.0070.01016.89
7.2.80.0030.01216.61
7.2.70.0090.00616.67
7.2.60.0070.00716.81
7.2.50.0000.01416.75
7.2.40.0000.01316.88
7.2.30.0030.01016.88
7.2.20.0070.00416.91
7.2.10.0000.01716.61
7.2.00.0030.01316.65
7.1.330.0070.00715.86
7.1.320.0110.00315.45
7.1.310.0060.00615.62
7.1.300.0040.01115.82
7.1.290.0030.00915.82
7.1.280.0080.00315.46
7.1.270.0110.00315.67
7.1.260.0000.01415.84
7.1.250.0090.00615.70
7.1.100.0030.01218.16
7.1.70.0000.00716.76
7.1.60.0120.01219.24
7.1.50.0060.01316.65
7.1.00.0070.06722.55
7.0.200.0060.00616.78
7.0.140.0030.07322.18
7.0.100.0100.08020.13
7.0.90.0070.07320.01
7.0.80.0100.05720.17
7.0.70.0030.07019.96
7.0.60.0070.07019.92
7.0.50.0570.06720.30
7.0.40.0000.07320.16
7.0.30.0100.07020.24
7.0.20.0130.07720.10
7.0.10.0100.08320.09
7.0.00.0070.08020.21
5.6.280.0030.07021.15
5.6.250.0030.08720.62
5.6.240.0100.08320.66
5.6.230.0130.07720.56
5.6.220.0130.07020.62
5.6.210.0100.07720.67
5.6.200.0070.08721.15
5.6.190.0170.05321.07
5.6.180.0230.07021.09
5.6.170.0130.08021.07
5.6.160.0070.06021.05
5.6.150.0070.07721.06
5.6.140.0070.08021.23
5.6.130.0030.08721.12
5.6.120.0070.05021.24
5.6.110.0170.07721.12
5.6.100.0070.05021.02
5.6.90.0100.08721.07
5.6.80.0030.08720.41
5.6.70.0070.04720.55
5.6.60.0070.03720.48
5.6.50.0000.04320.35
5.6.40.0000.04020.60
5.6.30.0000.04320.48
5.6.20.0070.03720.46
5.6.10.0100.03720.48
5.6.00.0070.04020.44
5.5.380.0070.04720.58
5.5.370.0030.08720.59
5.5.360.0030.06720.43
5.5.350.0070.08320.42
5.5.340.0030.05020.85
5.5.330.0200.06020.99
5.5.320.0030.07720.84
5.5.310.0070.07720.79
5.5.300.0000.06720.99
5.5.290.0170.07020.91
5.5.280.0100.05020.75
5.5.270.0030.08720.84
5.5.260.0000.08720.97
5.5.250.0030.07720.76
5.5.240.0100.05020.24
5.5.230.0130.04020.29
5.5.220.0030.08020.34
5.5.210.0100.03320.26
5.5.200.0100.04020.21
5.5.190.0030.05020.21
5.5.180.0030.04020.15
5.5.160.0000.04020.32
5.5.150.0030.05020.11
5.5.140.0070.03720.14
5.5.130.0030.04320.25
5.5.120.0070.05720.20
5.5.110.0000.04320.09
5.5.100.0070.03320.09
5.5.90.0000.04320.20
5.5.80.0000.04720.10
5.5.70.0000.03320.10
5.5.60.0070.04320.14
5.5.50.0070.04020.21
5.5.40.0000.04020.15
5.5.30.0130.04720.21
5.5.20.0070.04320.10
5.5.10.0000.04320.06
5.5.00.0070.03320.19
5.4.450.0030.08319.42
5.4.440.0030.07719.26
5.4.430.0030.08019.54
5.4.420.0170.06719.40
5.4.410.0100.07319.38
5.4.400.0070.08019.31
5.4.390.0100.03319.21
5.4.380.0000.04319.04
5.4.370.0070.03319.18
5.4.360.0100.06319.05
5.4.350.0030.05019.22
5.4.340.0000.04319.17
5.4.320.0030.07319.21
5.4.310.0000.06319.22
5.4.300.0130.03019.21
5.4.290.0030.04719.18
5.4.280.0070.03318.89
5.4.270.0070.05719.08
5.4.260.0000.04019.21
5.4.250.0000.04019.32
5.4.240.0030.03019.21
5.4.230.0030.03719.17
5.4.220.0000.04019.17
5.4.210.0030.04318.89
5.4.200.0030.03719.02
5.4.190.0100.03318.92
5.4.180.0070.03319.00
5.4.170.0030.03719.21
5.4.160.0030.03719.20
5.4.150.0000.04319.01
5.4.140.0030.04016.52
5.4.130.0070.03716.55
5.4.120.0070.03716.57
5.4.110.0100.03016.58
5.4.100.0000.03316.53
5.4.90.0030.03716.55
5.4.80.0070.03316.48
5.4.70.0030.05016.54
5.4.60.0030.05016.51
5.4.50.0130.05316.58
5.4.40.0070.07316.62
5.4.30.0030.07016.43
5.4.20.0030.07316.52
5.4.10.0070.07716.61
5.4.00.0070.04715.82
5.3.290.0030.05014.88
5.3.280.0070.04714.61
5.3.270.0030.03714.77
5.3.260.0000.04014.76
5.3.250.0030.04014.76
5.3.240.0000.04014.72
5.3.230.0000.04014.61
5.3.220.0070.03714.77
5.3.210.0030.03714.70
5.3.200.0000.07014.60
5.3.190.0130.03014.63
5.3.180.0030.06014.77
5.3.170.0030.07014.59
5.3.160.0100.07014.68
5.3.150.0100.07014.68
5.3.140.0100.06714.68
5.3.130.0000.07714.60
5.3.120.0000.03714.67
5.3.110.0100.03714.58
5.3.100.0070.05314.21
5.3.90.0070.06314.14
5.3.80.0000.08014.22
5.3.70.0000.07714.19
5.3.60.0200.06014.06
5.3.50.0100.06714.15
5.3.40.0070.05014.13
5.3.30.0100.07014.03
5.3.20.0100.07013.82
5.3.10.0170.06013.83
5.3.00.0100.05713.81
5.2.170.0070.02711.27
5.2.160.0070.06011.18
5.2.150.0030.05711.27
5.2.140.0070.05711.35
5.2.130.0000.05711.25
5.2.120.0030.03011.07
5.2.110.0070.06011.13
5.2.100.0030.06011.27
5.2.90.0000.03711.23
5.2.80.0030.06311.30
5.2.70.0030.06711.04
5.2.60.0000.06711.07
5.2.50.0030.06711.02
5.2.40.0070.05711.20
5.2.30.0070.06011.10
5.2.20.0070.05311.18
5.2.10.0030.04310.84
5.2.00.0070.05310.89
5.1.60.0070.0509.97
5.1.50.0070.04710.04
5.1.40.0070.05010.02
5.1.30.0030.05710.51
5.1.20.0070.06010.48
5.1.10.0070.05310.12
5.1.00.0130.04710.09
5.0.50.0000.0408.54
5.0.40.0030.0478.55
5.0.30.0030.0608.48
5.0.20.0100.0308.48
5.0.10.0070.0208.48
5.0.00.0000.0438.48
4.4.90.0070.0308.48
4.4.80.0030.0338.48
4.4.70.0000.0338.48
4.4.60.0030.0338.48
4.4.50.0030.0338.48
4.4.40.0070.0538.48
4.4.30.0000.0278.48
4.4.20.0030.0378.48
4.4.10.0030.0338.48
4.4.00.0000.0578.48
4.3.110.0030.0178.48
4.3.100.0000.0338.48
4.3.90.0000.0308.48
4.3.80.0000.0308.48
4.3.70.0030.0308.48
4.3.60.0030.0338.48
4.3.50.0000.0378.48
4.3.40.0000.0508.48
4.3.30.0000.0378.48
4.3.20.0030.0378.48
4.3.10.0070.0308.48
4.3.00.0000.0378.48

preferences:
44.16 ms | 401 KiB | 5 Q